diff options
author | Michael S. Tsirkin | 2012-12-20 13:28:58 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2013-01-07 18:42:22 +0100 |
commit | 2d620f593d9395abd9aa453f8ae0861a51d674d8 (patch) | |
tree | d3cab64b07a957ce4334b1a3ad5f1ba1a08c95d4 /hw/virtio.h | |
parent | Revert "virtio-pci: replace byte swap hack" (diff) | |
download | qemu-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.h | 2 |
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; |