]> Git Repo - qemu.git/blobdiff - hw/virtio-pci.h
pseries: Under kvm use guest cpu = host cpu by default
[qemu.git] / hw / virtio-pci.h
index b5189172de0ce01d1efb55510ba2faa4ae7512d1..f8404de92b23486a7e571ac3974e24d1cd7b4509 100644 (file)
 #include "virtio-net.h"
 #include "virtio-serial.h"
 
+/* Performance improves when virtqueue kick processing is decoupled from the
+ * vcpu thread using ioeventfd for some devices. */
+#define VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT 1
+#define VIRTIO_PCI_FLAG_USE_IOEVENTFD   (1 << VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT)
+
 typedef struct {
     PCIDevice pci_dev;
     VirtIODevice *vdev;
+    MemoryRegion bar;
+    MemoryRegion msix_bar;
     uint32_t flags;
-    uint32_t addr;
     uint32_t class_code;
     uint32_t nvectors;
     BlockConf block;
+    char *block_serial;
     NICConf nic;
     uint32_t host_features;
 #ifdef CONFIG_LINUX
This page took 0.025226 seconds and 4 git commands to generate.