]> git.baikalelectronics.ru Git - kernel.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)
commitde709955711b5a716c6108af16a754bae1e16687
treeb9dab6f5a97c94028e79ef90dec1e9ebb5fa10fd
parentb4453af3ac5bb321a0a0d5a9699bd81c3c2a78f3
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