diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2012-12-20 14:28:58 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-01-07 19:42:22 +0200 |
commit | 2d620f593d9395abd9aa453f8ae0861a51d674d8 (patch) | |
tree | d3cab64b07a957ce4334b1a3ad5f1ba1a08c95d4 /hw/virtio.h | |
parent | 8e4a424b305e29dc0e454f52df3b35577f342975 (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.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; |