]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/mm: add kvm shadow fault function
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 8 Mar 2016 11:16:35 +0000 (12:16 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 20 Jun 2016 07:54:12 +0000 (09:54 +0200)
commitaa17aa57cfb95b169f25fe98caae49e477590af3
treeb9dab6f5a97c94028e79ef90dec1e9ebb5fa10fd
parent4be130a08420d6918d80c1067f8078f425eb98df
s390/mm: add kvm shadow fault function

This patch introduces function kvm_s390_shadow_fault() used to resolve a
fault on a shadow gmap. This function will do validity checking and
build up the shadow page table hierarchy in order to fault in the
requested page into the shadow page table structure.

If an exception occurs while shadowing, guest 2 has to be notified about
it using either an exception or a program interrupt intercept. If
concurrent unshadowing occurres, this function will simply return with
-EAGAIN and the caller has to retry.

Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/gaccess.c
arch/s390/kvm/gaccess.h