]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/entry: sort out physical vs virtual pointers usage in sie64a
authorNico Boehr <nrb@linux.ibm.com>
Thu, 20 Oct 2022 14:31:56 +0000 (16:31 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Wed, 26 Oct 2022 12:27:41 +0000 (14:27 +0200)
commit6b33e68ab30949f9657e2acc59766977ae63e1cc
tree61e7050f3d62cf8f8f2e5049fb8cfcbe32fa6908
parent079f0c21ef6d79f80b19b64f5e0218d5a328c4cd
s390/entry: sort out physical vs virtual pointers usage in sie64a

Fix virtual vs physical address confusion (which currently are the
same).

sie_block is accessed in entry.S and passed it to hardware, which is why
both its physical and virtual address are needed. To avoid every caller
having to do the virtual-physical conversion, add a new function sie64a()
which converts the virtual address to physical.

Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Link: https://lore.kernel.org/r/20221020143159.294605-3-nrb@linux.ibm.com
Message-Id: <20221020143159.294605-3-nrb@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/include/asm/stacktrace.h
arch/s390/kernel/asm-offsets.c
arch/s390/kernel/entry.S