KVM: s390: Sanity check on validity intercept
authorCarsten Otte <cotte@de.ibm.com>
Tue, 12 May 2009 15:21:52 +0000 (17:21 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:56 +0000 (11:48 +0300)
commit3edbcff9bfe2ed632e518b3cfe807d062cee8269
treeda0f137814c3918bff991190197f3aadc69ea97d
parentabf4a71ed95ff29d696bf04633958b2068ed2e0b
KVM: s390: Sanity check on validity intercept

This patch adds a sanity check for the content of the guest
prefix register content before faulting in the cpu lowcore
that it refers to. The guest might end up in an endless loop
where SIE complains about missing lowcore with incorrect
content of the prefix register without this fix.

Reported-by: Mijo Safradin <mijo@linux.vnet.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Christian Ehrhardt <ehrhardt@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/intercept.c