KVM: s390: protvirt: handle secure guest prefix pages
authorJanosch Frank <frankja@linux.ibm.com>
Tue, 17 Sep 2019 12:53:53 +0000 (14:53 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 27 Feb 2020 18:47:11 +0000 (19:47 +0100)
commitd274995ec273b82dbbccc5521ab2132217f64952
treed785a13e585f2d981ca75e19be9f62abffcfcc4c
parent19e1227768863a1469797c13ef8fea1af7beac2c
KVM: s390: protvirt: handle secure guest prefix pages

The SPX instruction is handled by the ultravisor. We do get a
notification intercept, though. Let us update our internal view.

In addition to that, when the guest prefix page is not secure, an
intercept 112 (0x70) is indicated. Let us make the prefix pages
secure again.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
[borntraeger@de.ibm.com: patch merging, splitting, fixing]
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/intercept.c