KVM: s390: protvirt: Only sync fmt4 registers
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 14 Jun 2019 11:11:21 +0000 (13:11 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 27 Feb 2020 18:47:12 +0000 (19:47 +0100)
commit811ea797118a8caf54b54fc5c30e0b6c90c8abf3
tree3c2c387e483bdc954e738ee34c7cb35d10522453
parent0f3035047140b3dc18fc5a028ed5f273f24b5539
KVM: s390: protvirt: Only sync fmt4 registers

A lot of the registers are controlled by the Ultravisor and never
visible to KVM. Also some registers are overlayed, like gbea is with
sidad, which might leak data to userspace.

Hence we sync a minimal set of registers for both SIE formats and then
check and sync format 2 registers if necessary.

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