]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KVM: s390: split kvm_s390_logical_to_effective
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 2 Mar 2021 12:36:44 +0000 (13:36 +0100)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:15 +0000 (17:46 -0600)
commit48860c3e7804f8478281d37f7b1f182ec9f4b47f
tree1b9c6ef1bd5af51bd1b84177a2db7135e435311e
parente4ceb75f04901d1b973b9e96f09d2c59e26058a9
KVM: s390: split kvm_s390_logical_to_effective

BugLink: https://bugs.launchpad.net/bugs/1929455
commit f85f1baaa18932a041fd2b1c2ca6cfd9898c7d2b upstream.

Split kvm_s390_logical_to_effective to a generic function called
_kvm_s390_logical_to_effective. The new function takes a PSW and an address
and returns the address with the appropriate bits masked off. The old
function now calls the new function with the appropriate PSW from the vCPU.

This is needed to avoid code duplication for vSIE.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: stable@vger.kernel.org # for VSIE: correctly handle MVPG when in VSIE
Link: https://lore.kernel.org/r/20210302174443.514363-2-imbrenda@linux.ibm.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/s390/kvm/gaccess.h