aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-pci.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-12-20 14:28:58 +0200
committerMichael S. Tsirkin <mst@redhat.com>2013-01-07 19:42:22 +0200
commit2d620f593d9395abd9aa453f8ae0861a51d674d8 (patch)
treed3cab64b07a957ce4334b1a3ad5f1ba1a08c95d4 /hw/virtio-pci.h
parent8e4a424b305e29dc0e454f52df3b35577f342975 (diff)
virtio: don't waste irqfds on control vqs
Pass nvqs to set_guest_notifiers. This makes it possible to save on irqfds by not allocating one for the control vq for virtio-net. 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 b58d9a2d19..b0f17e2b16 100644
--- a/hw/virtio-pci.h
+++ b/hw/virtio-pci.h
@@ -51,6 +51,7 @@ typedef struct {
bool ioeventfd_disabled;
bool ioeventfd_started;
VirtIOIRQFD *vector_irqfd;
+ int nvqs_with_notifiers;
} VirtIOPCIProxy;
void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);