]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58eb5012ea22582d4f4e30344f6078ebb2aab8ea
tree81689137ce813893ffb6fe4968fa8f5850cba4e6
parenteaf00056e41a72319829f485c7ab903ba72120fb
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: 609f119712d0 ("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