vfio/pci: detect the support of dynamic MSI-X allocation
commit45d85f6228117dbe01d3680f1ad834389f69012f
authorJing Liu <jing2.liu@intel.com>
Tue, 26 Sep 2023 02:14:04 +0000 (25 22:14 -0400)
committerCédric Le Goater <clg@redhat.com>
Thu, 5 Oct 2023 20:04:51 +0000 (5 22:04 +0200)
tree20f1ac692221dafc24ae4dc8217bc249f9c625b8
parentc06327c9db960158edc8756dbc0eb25fab920656
vfio/pci: detect the support of dynamic MSI-X allocation

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 <reinette.chatre@intel.com>
Signed-off-by: Jing Liu <jing2.liu@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/pci.c
hw/vfio/pci.h
hw/vfio/trace-events