]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1dd6651f3a1dce753e40312deee59fc02a0eb4b
treeee07bdda3663c68fad9cbeaff76935794f3f0286
parent7343991a8b0db392cab03b181aca641d7df6219f
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