summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Wang2021-09-03 11:10:14 +0200
committerMichael S. Tsirkin2021-09-04 23:34:05 +0200
commit5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c (patch)
treef4f74d31d43c4f93bf321b0fd813882914dee0cc /include
parentvhost_net: remove the meaningless assignment in vhost_net_start_one() (diff)
downloadqemu-5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c.tar.gz
qemu-5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c.tar.xz
qemu-5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c.zip
vhost: use unsigned int for nvqs
Switch to use unsigned int for nvqs since it's not expected to be negative. Reviewed-by: Eli Cohen <elic@nvidia.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20210903091031.47303-5-jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/virtio/vhost.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h
index 5ee306568b..1a9fc65089 100644
--- a/include/hw/virtio/vhost.h
+++ b/include/hw/virtio/vhost.h
@@ -71,7 +71,7 @@ struct vhost_dev {
int n_tmp_sections;
MemoryRegionSection *tmp_sections;
struct vhost_virtqueue *vqs;
- int nvqs;
+ unsigned int nvqs;
/* the first virtqueue which would be used by this vhost dev */
int vq_index;
/* if non-zero, minimum required value for max_queues */