summaryrefslogtreecommitdiff
path: root/hw/virtio-pci.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-12-21 00:27:54 +0200
committerMichael S. Tsirkin <mst@redhat.com>2013-01-07 19:42:23 +0200
commit774345f981854b026e24aeb0833311183a8e8067 (patch)
tree90bd7560875671db6a6414c5b48a93c195030041 /hw/virtio-pci.h
parent078bbb504031dc89616d4b67adcf2ce884cb880b (diff)
downloadqemu-774345f981854b026e24aeb0833311183a8e8067.tar.gz
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;