]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: Enable DAT support for TPROT handler
authorThomas Huth <thuth@linux.vnet.ibm.com>
Tue, 4 Feb 2014 13:48:07 +0000 (14:48 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 30 May 2014 07:39:36 +0000 (09:39 +0200)
commit23034ead96757f7da0d55c4c80b64040c37f40df
tree5ffee52ce78ef810c6ac70fd277eb32046060a78
parent6a6e460fb0c8aa2b01b60216027ab3bb98900615
KVM: s390: Enable DAT support for TPROT handler

The TPROT instruction can be used to check the accessability of storage
for any kind of logical addresses. So far, our handler only supported
real addresses. This patch now also enables support for addresses that
have to be translated via DAT first. And while we're at it, change the
code to use the common KVM function gfn_to_hva_prot() to check for the
validity and writability of the memory page.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
arch/s390/kvm/gaccess.c
arch/s390/kvm/gaccess.h
arch/s390/kvm/priv.c