diff options
author | Jason Wang <jasowang@redhat.com> | 2021-10-20 12:56:00 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-10-20 04:44:05 -0400 |
commit | 402378407dbdce79ce745a13f5c84815f929cfdd (patch) | |
tree | 85f62265c758fc9f3dd04417701b76d06ea82dca /hw/virtio | |
parent | 22288fe5a3f2dc4cb5c8826646d466019ad67682 (diff) | |
download | qemu-402378407dbdce79ce745a13f5c84815f929cfdd.zip qemu-402378407dbdce79ce745a13f5c84815f929cfdd.tar.gz qemu-402378407dbdce79ce745a13f5c84815f929cfdd.tar.bz2 |
vhost-vdpa: multiqueue support
This patch implements the multiqueue support for vhost-vdpa. This is
done simply by reading the number of queue pairs from the config space
and initialize the datapath and control path net client.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20211020045600.16082-11-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/vhost-vdpa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c index 8948fd3..12661fd 100644 --- a/hw/virtio/vhost-vdpa.c +++ b/hw/virtio/vhost-vdpa.c @@ -632,7 +632,7 @@ static int vhost_vdpa_dev_start(struct vhost_dev *dev, bool started) vhost_vdpa_host_notifiers_uninit(dev, dev->nvqs); } - if (vhost_vdpa_one_time_request(dev)) { + if (dev->vq_index + dev->nvqs != dev->last_index) { return 0; } |