]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:49:30 +0000 (10:49 +0200)
commitc735288041fac08969ad20c012114aace7549080
treed81faf043c41ccb90869b9afb24e8824766cf1be
parent2d5118a304100cd004a8b0b54151c5339a973bbd
KVM: s390: split kvm_s390_logical_to_effective

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>
arch/s390/kvm/gaccess.h