Re: [PATCH v4 25/36] KVM: s390: protvirt: Only sync fmt4 registers

Cornelia Huck
2020-02-25T12:36:45Z

On Mon, 24 Feb 2020 06:40:56 -0500
Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> From: Janosch Frank <frankja@linux.ibm.com>
>
> 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: 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 | 110 +++++++++++++++++++++++++--------------
> 1 file changed, 70 insertions(+), 40 deletions(-)
>

Reviewed-by: Cornelia Huck <cohuck@redhat.com>