From 45d85f6228117dbe01d3680f1ad834389f69012f Mon Sep 17 00:00:00 2001 From: Jing Liu Date: Mon, 25 Sep 2023 22:14:04 -0400 Subject: vfio/pci: detect the support of dynamic MSI-X allocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kernel provides the guidance of dynamic MSI-X allocation support of passthrough device, by clearing the VFIO_IRQ_INFO_NORESIZE flag to guide user space. Fetch the flags from host to determine if dynamic MSI-X allocation is supported. Originally-by: Reinette Chatre Signed-off-by: Jing Liu Reviewed-by: Cédric Le Goater Reviewed-by: Alex Williamson Signed-off-by: Cédric Le Goater --- hw/vfio/pci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/vfio/pci.h') diff --git a/hw/vfio/pci.h b/hw/vfio/pci.h index 2d836093a8..0d89eb761e 100644 --- a/hw/vfio/pci.h +++ b/hw/vfio/pci.h @@ -113,6 +113,7 @@ typedef struct VFIOMSIXInfo { uint32_t table_offset; uint32_t pba_offset; unsigned long *pending; + bool noresize; } VFIOMSIXInfo; #define TYPE_VFIO_PCI "vfio-pci" -- cgit 1.4.1