summaryrefslogtreecommitdiffstats
path: root/hw/virtio.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin2012-12-20 13:28:58 +0100
committerMichael S. Tsirkin2013-01-07 18:42:22 +0100
commit2d620f593d9395abd9aa453f8ae0861a51d674d8 (patch)
treed3cab64b07a957ce4334b1a3ad5f1ba1a08c95d4 /hw/virtio.h
parentRevert "virtio-pci: replace byte swap hack" (diff)
downloadqemu-2d620f593d9395abd9aa453f8ae0861a51d674d8.tar.gz
qemu-2d620f593d9395abd9aa453f8ae0861a51d674d8.tar.xz
qemu-2d620f593d9395abd9aa453f8ae0861a51d674d8.zip
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.h')
-rw-r--r--hw/virtio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio.h b/hw/virtio.h
index 1dec9dce07..329b426fc0 100644
--- a/hw/virtio.h
+++ b/hw/virtio.h
@@ -99,7 +99,7 @@ typedef struct {
int (*load_done)(DeviceState *d, QEMUFile *f);
unsigned (*get_features)(DeviceState *d);
bool (*query_guest_notifiers)(DeviceState *d);
- int (*set_guest_notifiers)(DeviceState *d, bool assigned);
+ int (*set_guest_notifiers)(DeviceState *d, int nvqs, bool assigned);
int (*set_host_notifier)(DeviceState *d, int n, bool assigned);
void (*vmstate_change)(DeviceState *d, bool running);
} VirtIOBindings;