diff options
author | Michael S. Tsirkin | 2012-12-20 23:27:54 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2013-01-07 18:42:23 +0100 |
commit | 774345f981854b026e24aeb0833311183a8e8067 (patch) | |
tree | 90bd7560875671db6a6414c5b48a93c195030041 /hw/virtio-pci.h | |
parent | kvm: add stub for update msi route (diff) | |
download | qemu-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.h | 1 |
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; |