summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJason Wang2021-09-03 11:10:15 +0200
committerMichael S. Tsirkin2021-09-04 23:34:05 +0200
commit6a756d1495fc0a852b119f7ecbb7a20131f0aba7 (patch)
tree30b8653a6b4b81d6091c4b14c88055878346d72b /scripts
parentvhost: use unsigned int for nvqs (diff)
downloadqemu-6a756d1495fc0a852b119f7ecbb7a20131f0aba7.tar.gz
qemu-6a756d1495fc0a852b119f7ecbb7a20131f0aba7.tar.xz
qemu-6a756d1495fc0a852b119f7ecbb7a20131f0aba7.zip
vhost_net: do not assume nvqs is always 2
This patch switches to initialize dev.nvqs from the VhostNetOptions instead of assuming it was 2. This is useful for implementing control virtqueue support which will be a single vhost_net structure with a single cvq. Note that nvqs is still set to 2 for all users and this patch does not change functionality. Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Eli Cohen <elic@nvidia.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20210903091031.47303-6-jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions