-
- Downloads
s390/airq: allow for airq structure that uses an input vector
When doing device passthrough where interrupts are being forwarded from host to guest, we wish to use a pinned section of guest memory as the vector (the same memory used by the guest as the vector). To accomplish this, add a new parameter for airq_iv_create which allows passing an existing vector to be used instead of allocating a new one. The caller is responsible for ensuring the vector is pinned in memory as well as for unpinning the memory when the vector is no longer needed. A subsequent patch will use this new parameter for zPCI interpretation. Reviewed-by:Thomas Huth <thuth@redhat.com> Reviewed-by:
Pierre Morel <pmorel@linux.ibm.com> Reviewed-by:
Claudio Imbrenda <imbrenda@linux.ibm.com> Acked-by:
Cornelia Huck <cohuck@redhat.com> Signed-off-by:
Matthew Rosato <mjrosato@linux.ibm.com> Link: https://lore.kernel.org/r/20220606203325.110625-7-mjrosato@linux.ibm.com Signed-off-by:
Christian Borntraeger <borntraeger@linux.ibm.com>
Showing
- arch/s390/include/asm/airq.h 3 additions, 1 deletionarch/s390/include/asm/airq.h
- arch/s390/pci/pci_irq.c 4 additions, 4 deletionsarch/s390/pci/pci_irq.c
- drivers/s390/cio/airq.c 7 additions, 3 deletionsdrivers/s390/cio/airq.c
- drivers/s390/virtio/virtio_ccw.c 1 addition, 1 deletiondrivers/s390/virtio/virtio_ccw.c
Loading
Please register or sign in to comment