[S390] kvm: handle tprot intercepts
authorChristian Borntraeger <borntraeger@de.ibm.com>
Sun, 24 Jul 2011 08:48:17 +0000 (10:48 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 24 Jul 2011 08:48:20 +0000 (10:48 +0200)
commitbb25b9ba3e33e941dc48048d0a784e6a05e5648a
tree687caacfbe9165dd80d2e29af4b68ce32216e28d
parentb02f0c2ea25781e0f94b4fc8f6f85582057857b3
[S390] kvm: handle tprot intercepts

When running a kvm guest we can get intercepts for tprot, if the host
page table is read-only or not populated. This patch implements the
most common case (linux memory detection).
This also allows host copy on write for guest memory on newer systems.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/priv.c