mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
8e4a424b30
commit
2d620f593d
4 changed files with 23 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue