vfio/ccw: sort out physical vs virtual pointers usage
authorAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 21 Nov 2022 16:58:35 +0000 (17:58 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 5 Dec 2022 14:01:31 +0000 (15:01 +0100)
commit21c7996917cb5c9d8669409b00d990b75d22a849
tree8ea27f8a2993839827b4d0ec991a5b0b37013a43
parentdfe843dce775f16e3d15a1bf14e5363bff2321f3
vfio/ccw: sort out physical vs virtual pointers usage

The ORB's interrupt parameter field is stored unmodified into the
interruption code when an I/O interrupt occurs. As this reflects
a real device, let's store the physical address of the subchannel
struct so it can be used when processing an interrupt.

Note: this currently doesn't fix a real bug, since virtual
addresses are identical to physical ones.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
[EF: Updated commit message]
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
Link: https://lore.kernel.org/r/20221121165836.283781-2-farman@linux.ibm.com
drivers/s390/cio/vfio_ccw_fsm.c