Skip to content

Commit dbec280

Browse files
Nico Boehrfrankjaa
authored andcommitted
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]>
1 parent cc72688 commit dbec280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/s390/crypto/vfio_ap_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ static struct ap_queue_status vfio_ap_irq_enable(struct vfio_ap_queue *q,
429429

430430
aqic_gisa.isc = nisc;
431431
aqic_gisa.ir = 1;
432-
aqic_gisa.gisa = (uint64_t)gisa >> 4;
432+
aqic_gisa.gisa = virt_to_phys(gisa) >> 4;
433433

434434
status = ap_aqic(q->apqn, aqic_gisa, h_nib);
435435
switch (status.response_code) {

0 commit comments

Comments
 (0)