summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2018-07-20 15:51:21 +0300
committerChristian Borntraeger <borntraeger@de.ibm.com>2018-07-30 18:05:52 +0300
commit57cb198cfdd2e666a8dc2b7e5df6d2708191eddb (patch)
treebb39a6e0c243d7c5708cdb010f6b94ea52d5490a /arch/s390/include/asm/kvm_host.h
parenta3da7b4a3be51f37f434f14e11e60491f098b6ea (diff)
downloadlinux-57cb198cfdd2e666a8dc2b7e5df6d2708191eddb.tar.xz
KVM: s390: Beautify skey enable check
Let's introduce an explicit check if skeys have already been enabled for the vcpu, so we don't have to check the mm context if we don't have the storage key facility. This lets us check for enablement without having to take the mm semaphore and thus speedup skey emulation. Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: David Hildenbrand <david@redhat.com> Acked-by: Farhan Ali <alifm@linux.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/kvm_host.h')
-rw-r--r--arch/s390/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h
index 1a7b6834797e..29c940bf8506 100644
--- a/arch/s390/include/asm/kvm_host.h
+++ b/arch/s390/include/asm/kvm_host.h
@@ -656,6 +656,7 @@ struct kvm_vcpu_arch {
seqcount_t cputm_seqcount;
__u64 cputm_start;
bool gs_enabled;
+ bool skey_enabled;
};
struct kvm_vm_stat {