KVM: s390: Add a function for checking the low-address protection
authorThomas Huth <thuth@linux.vnet.ibm.com>
Mon, 3 Mar 2014 22:34:42 +0000 (23:34 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 29 Apr 2014 13:01:52 +0000 (15:01 +0200)
commitf8232c8cf720074c0eb0804202d424a2b7b4ee76
treeee07bdda3663c68fad9cbeaff76935794f3f0286
parent9a558ee3ccb8afcf43c8d9d4d206ab6de4aa30a2
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>
arch/s390/kvm/gaccess.c
arch/s390/kvm/gaccess.h