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)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 24 Mar 2021 09:31:55 +0000 (10:31 +0100)
commitc3171e94cc1cdcc3229565244112e869f052b8d9
tree81689137ce813893ffb6fe4968fa8f5850cba4e6
parentc5d1f6b531e68888cbe6718b3f77a60115d58b9c
KVM: s390: VSIE: fix MVPG handling for prefixing and MSO

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>
arch/s390/kvm/vsie.c