diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index d37037ef1738fb53607cccc26e40bf88f3e4bdf5..41b96cef1ee4f370487956f32efebc0242478b54 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -799,8 +799,7 @@ static int virtio_pci_set_guest_notifiers(DeviceState *d, int nvqs, bool assign) break; } - r = virtio_pci_set_guest_notifier(d, n, assign, - kvm_msi_via_irqfd_enabled()); + r = virtio_pci_set_guest_notifier(d, n, assign, with_irqfd); if (r < 0) { goto assign_error; }