As we enable the vectors, we shall have an MSI route setup. The notification of the stage 1 binding is done on MSI route setup.
Signed-off-by: Eric Auger <eric.au...@redhat.com> --- hw/vfio/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 056f3a887a..040a2f39f8 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -522,6 +522,7 @@ static int vfio_msix_vector_do_use(PCIDevice *pdev, unsigned int nr, if (vdev->nr_vectors < nr + 1) { vfio_disable_irqindex(&vdev->vbasedev, VFIO_PCI_MSIX_IRQ_INDEX); vdev->nr_vectors = nr + 1; + vfio_add_kvm_msi_virq(vdev, vector, nr, true); ret = vfio_enable_vectors(vdev, true); if (ret) { error_report("vfio: failed to enable vectors, %d", ret); -- 2.17.1