Blame qemu-virtio-pci-irqfd-fix-nonkvm-build.patch
|
Justin M. Forbes |
272dfe |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
Justin M. Forbes |
272dfe |
|
|
Justin M. Forbes |
272dfe |
---
|
|
Justin M. Forbes |
272dfe |
|
|
Justin M. Forbes |
272dfe |
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
|
|
Justin M. Forbes |
272dfe |
index e8e0d82..fd0c73f 100644
|
|
Justin M. Forbes |
272dfe |
--- a/hw/virtio-pci.c
|
|
Justin M. Forbes |
272dfe |
+++ b/hw/virtio-pci.c
|
|
Justin M. Forbes |
272dfe |
@@ -404,6 +404,7 @@ static void virtio_pci_guest_notifier_read(void *opaque)
|
|
Justin M. Forbes |
272dfe |
}
|
|
Justin M. Forbes |
272dfe |
}
|
|
Justin M. Forbes |
272dfe |
|
|
Justin M. Forbes |
272dfe |
+#ifdef CONFIG_KVM
|
|
Justin M. Forbes |
272dfe |
static int virtio_pci_mask_notifier(PCIDevice *dev, unsigned vector,
|
|
Justin M. Forbes |
272dfe |
void *opaque, int masked)
|
|
Justin M. Forbes |
272dfe |
{
|
|
Justin M. Forbes |
272dfe |
@@ -424,6 +425,7 @@ static int virtio_pci_mask_notifier(PCIDevice *dev, unsigned vector,
|
|
Justin M. Forbes |
272dfe |
}
|
|
Justin M. Forbes |
272dfe |
return 0;
|
|
Justin M. Forbes |
272dfe |
}
|
|
Justin M. Forbes |
272dfe |
+#endif
|
|
Justin M. Forbes |
272dfe |
|
|
Justin M. Forbes |
272dfe |
static int virtio_pci_guest_notifier(void *opaque, int n, bool assign)
|
|
Justin M. Forbes |
272dfe |
{
|
|
Justin M. Forbes |
272dfe |
@@ -526,7 +528,9 @@ static void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
|
|
Justin M. Forbes |
272dfe |
|
|
Justin M. Forbes |
272dfe |
proxy->pci_dev.config_write = virtio_write_config;
|
|
Justin M. Forbes |
272dfe |
|
|
Justin M. Forbes |
272dfe |
+#ifdef CONFIG_KVM
|
|
Justin M. Forbes |
272dfe |
proxy->pci_dev.msix_mask_notifier = virtio_pci_mask_notifier;
|
|
Justin M. Forbes |
272dfe |
+#endif
|
|
Justin M. Forbes |
272dfe |
|
|
Justin M. Forbes |
272dfe |
size = VIRTIO_PCI_REGION_SIZE(&proxy->pci_dev) + vdev->config_len;
|
|
Justin M. Forbes |
272dfe |
if (size & (size-1))
|