OSDN Git Service

KVM: s390: sida: sort out physical vs virtual pointers usage
authorNico Boehr <nrb@linux.ibm.com>
Thu, 20 Oct 2022 14:31:58 +0000 (16:31 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Wed, 26 Oct 2022 12:27:41 +0000 (14:27 +0200)
commitb99f4512197acc10f63b5fb462c088c2f62b5120
tree6026d1875a7d91a22a842bc25c24bac3ce11b131
parentfe0ef00304639cae82df7c9ad6a15286bd5f876e
KVM: s390: sida: sort out physical vs virtual pointers usage

All callers of the sida_origin() macro actually expected a virtual
address, so rename it to sida_addr() and hand out a virtual address.

At some places, the macro wasn't used, potentially creating problems
if the sida size ever becomes nonzero (not currently the case), so let's
start using it everywhere now while at it.

Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Link: https://lore.kernel.org/r/20221020143159.294605-5-nrb@linux.ibm.com
Message-Id: <20221020143159.294605-5-nrb@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c
arch/s390/kvm/pv.c