summaryrefslogtreecommitdiffstats
path: root/hw/virtio-pci.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin2012-12-20 23:27:54 +0100
committerMichael S. Tsirkin2013-01-07 18:42:23 +0100
commit774345f981854b026e24aeb0833311183a8e8067 (patch)
tree90bd7560875671db6a6414c5b48a93c195030041 /hw/virtio-pci.h
parentkvm: add stub for update msi route (diff)
downloadqemu-774345f981854b026e24aeb0833311183a8e8067.tar.gz
qemu-774345f981854b026e24aeb0833311183a8e8067.tar.xz
qemu-774345f981854b026e24aeb0833311183a8e8067.zip
virtio-pci: cache msix messages
Some guests mask a vector then unmask without changing it. Store vectors to avoid kvm system calls in this case. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio-pci.h')
-rw-r--r--hw/virtio-pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h
index b0f17e2b16..9ff3139fe9 100644
--- a/hw/virtio-pci.h
+++ b/hw/virtio-pci.h
@@ -27,6 +27,7 @@
#define VIRTIO_PCI_FLAG_USE_IOEVENTFD (1 << VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT)
typedef struct {
+ MSIMessage msg;
int virq;
unsigned int users;
} VirtIOIRQFD;