KVM: s390: Add storage key facility interpretation control
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Thu, 15 Feb 2018 15:33:47 +0000 (16:33 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 17 May 2018 07:00:41 +0000 (09:00 +0200)
commit55531b7431db789766ac952391e95c170db48581
tree8e1a5fb6985cfb7faf1e2a61c1a4681488513dea
parent75bc37fefc4471e718ba8e651aa74673d4e0a9eb
KVM: s390: Add storage key facility interpretation control

Up to now we always expected to have the storage key facility
available for our (non-VSIE) KVM guests. For huge page support, we
need to be able to disable it, so let's introduce that now.

We add the use_skf variable to manage KVM storage key facility
usage. Also we rename use_skey in the mm context struct to uses_skeys
to make it more clear that it is an indication that the vm actively
uses storage keys.

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: Farhan Ali <alifm@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/include/asm/mmu.h
arch/s390/include/asm/mmu_context.h
arch/s390/include/asm/pgtable.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c
arch/s390/mm/gmap.c
arch/s390/mm/pgtable.c