KVM: s390: split kvm_s390_real_to_abs
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Mon, 22 Mar 2021 14:05:58 +0000 (15:05 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 24 Mar 2021 09:30:30 +0000 (10:30 +0100)
commitc5d1f6b531e68888cbe6718b3f77a60115d58b9c
tree07d9304cb66ebb1fe672567e78c9de564e16e87f
parentbdf7509bbefa20855d5f6bacdc5b62a8489477c9
KVM: s390: split kvm_s390_real_to_abs

A new function _kvm_s390_real_to_abs will apply prefixing to a real address
with a given prefix value.

The old kvm_s390_real_to_abs becomes now a wrapper around the new function.

This is needed to avoid code duplication in vSIE.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210322140559.500716-2-imbrenda@linux.ibm.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/gaccess.h