diff options
author | Nico Boehr <[email protected]> | 2022-11-18 11:04:29 +0100 |
---|---|---|
committer | Janosch Frank <[email protected]> | 2022-11-23 09:06:50 +0000 |
commit | dbec280045f8ca568de2a88ac4712a35f82f2cb1 (patch) | |
tree | 3956fe5fb89285c26a8600c484036f7f5088c430 | |
parent | cc726886079febfa2384d77486d7f3a11f951ea9 (diff) |
s390/vfio-ap: GISA: sort out physical vs virtual pointers usage
Fix virtual vs physical address confusion (which currently are the same)
for the GISA when enabling the IRQ.
Signed-off-by: Nico Boehr <[email protected]>
Reviewed-by: Halil Pasic <[email protected]>
Reviewed-by: Claudio Imbrenda <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Message-Id: <[email protected]>
Signed-off-by: Janosch Frank <[email protected]>
-rw-r--r-- | drivers/s390/crypto/vfio_ap_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/crypto/vfio_ap_ops.c b/drivers/s390/crypto/vfio_ap_ops.c index 0b4cc8c597ae..205a00105858 100644 --- a/drivers/s390/crypto/vfio_ap_ops.c +++ b/drivers/s390/crypto/vfio_ap_ops.c @@ -429,7 +429,7 @@ static struct ap_queue_status vfio_ap_irq_enable(struct vfio_ap_queue *q, aqic_gisa.isc = nisc; aqic_gisa.ir = 1; - aqic_gisa.gisa = (uint64_t)gisa >> 4; + aqic_gisa.gisa = virt_to_phys(gisa) >> 4; status = ap_aqic(q->apqn, aqic_gisa, h_nib); switch (status.response_code) { |