s390/kvm: Kick guests out of sie if prefix page host pte is touched
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 17 May 2013 12:41:36 +0000 (14:41 +0200)
committerGleb Natapov <gleb@redhat.com>
Tue, 21 May 2013 08:55:24 +0000 (11:55 +0300)
commit2c70fe4416d5f6d092b20ebf7d7654835e09c109
tree077a740810c4ed97629efa5e6fc598823f2af503
parent49b99e1e0dedbd6cc93b2d2776b60fb7151ff3d7
s390/kvm: Kick guests out of sie if prefix page host pte is touched

The guest prefix pages must be mapped writeable all the time
while SIE is running, otherwise the guest might see random
behaviour. (pinned at the pte level) Turns out that mlocking is
not enough, the page table entry (not the page) might change or
become r/o. This patch uses the gmap notifiers to kick guest
cpus out of SIE.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/s390/include/asm/pgtable.h
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h