diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2014-03-03 22:34:42 (GMT) |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-04-29 13:01:52 (GMT) |
commit | f8232c8cf720074c0eb0804202d424a2b7b4ee76 (patch) | |
tree | ee07bdda3663c68fad9cbeaff76935794f3f0286 /arch/s390/kvm/gaccess.h | |
parent | 9a558ee3ccb8afcf43c8d9d4d206ab6de4aa30a2 (diff) | |
download | linux-f8232c8cf720074c0eb0804202d424a2b7b4ee76.tar.xz |
KVM: s390: Add a function for checking the low-address protection
The s390 architecture has a special protection mechanism that can
be used to prevent write access to the vital data in the low-core
memory area. This patch adds a new helper function that can be used
to check for such write accesses and in case of protection, it also
sets up the exception data accordingly.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/gaccess.h')
-rw-r--r-- | arch/s390/kvm/gaccess.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kvm/gaccess.h b/arch/s390/kvm/gaccess.h index 1079c8f..68db43e 100644 --- a/arch/s390/kvm/gaccess.h +++ b/arch/s390/kvm/gaccess.h @@ -325,5 +325,6 @@ int read_guest_real(struct kvm_vcpu *vcpu, unsigned long gra, void *data, } int ipte_lock_held(struct kvm_vcpu *vcpu); +int kvm_s390_check_low_addr_protection(struct kvm_vcpu *vcpu, unsigned long ga); #endif /* __KVM_S390_GACCESS_H */ |