tests/libqos: support multiqueue for virtio-net

Initialize the additional virtqueues if they are supported.
This is needed to switch vhost-user-test's multiqueue test
to the virtio-net qgraph.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2018-10-22 12:37:21 +02:00
parent 6ae333f91b
commit 6bd4a6d4b8
3 changed files with 22 additions and 9 deletions

View file

@ -26,8 +26,8 @@ typedef struct QVirtioNetDevice QVirtioNetDevice;
struct QVirtioNet {
QVirtioDevice *vdev;
QVirtQueue *rx;
QVirtQueue *tx;
int n_queues;
QVirtQueue **queues;
};
struct QVirtioNetPCI {