Message ID | 20160915182408.1848.81843.stgit@gimli.home (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 7bfa17c..a5a620a 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -496,7 +496,9 @@ static int vfio_msix_vector_do_use(PCIDevice *pdev, unsigned int nr, vfio_update_kvm_msi_virq(vector, *msg, pdev); } } else { - vfio_add_kvm_msi_virq(vdev, vector, nr, true); + if (msg) { + vfio_add_kvm_msi_virq(vdev, vector, nr, true); + } } /*