KVM: s390: VSIE: fix MVPG handling for prefixing and MSO
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Mon, 22 Mar 2021 14:05:59 +0000 (15:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:50:03 +0000 (09:50 +0200)
commit3804d1a4be99258585eeb664f640785e257a26cb
tree3c161a2d4b303a79a726380774d745e96a46963f
parent814cb6de6db615c3579fd5556fe54aa22c173af8
KVM: s390: VSIE: fix MVPG handling for prefixing and MSO

commit c3171e94cc1cdcc3229565244112e869f052b8d9 upstream.

Prefixing needs to be applied to the guest real address to translate it
into a guest absolute address.

The value of MSO needs to be added to a guest-absolute address in order to
obtain the host-virtual.

Fixes: bdf7509bbefa ("s390/kvm: VSIE: correctly handle MVPG when in VSIE")
Reported-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210322140559.500716-3-imbrenda@linux.ibm.com
[borntraeger@de.ibm.com simplify mso]
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kvm/vsie.c