OpenCloudOS-Kernel/drivers/s390
Matthew Rosato 2a54e347d9 vfio/ap: Validate iova during dma_unmap and trigger irq disable
Currently, each mapped iova is stashed in its associated vfio_ap_queue;
when we get an unmap request, validate that it matches with one or more of
these stashed values before attempting unpins.

Each stashed iova represents IRQ that was enabled for a queue.  Therefore,
if a match is found, trigger IRQ disable for this queue to ensure that
underlying firmware will no longer try to use the associated pfn after the
page is unpinned. IRQ disable will also handle the associated unpin.

Link: https://lore.kernel.org/r/20221202135402.756470-3-yi.l.liu@intel.com
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-12-02 11:50:10 -04:00
..
block s390 updates for the 6.1 merge window 2022-10-09 13:51:40 -07:00
char s390/vmur: generate uevent on unsolicited device end 2022-10-10 10:15:10 +02:00
cio s390/cio: fix out-of-bounds access on cio_ignore free 2022-10-26 14:47:31 +02:00
crypto vfio/ap: Validate iova during dma_unmap and trigger irq disable 2022-12-02 11:50:10 -04:00
net s390 updates for the 6.1 merge window 2022-10-09 13:51:40 -07:00
scsi s390: move from strlcpy with unused retval to strscpy 2022-08-30 22:00:33 +02:00
virtio virtio: Revert "virtio: find_vqs() add arg sizes" 2022-08-16 01:40:24 -04:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00