diff options
author | Jason Wang <jasowang@redhat.com> | 2021-09-03 17:10:14 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-09-04 17:34:05 -0400 |
commit | 5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c (patch) | |
tree | f4f74d31d43c4f93bf321b0fd813882914dee0cc /include/hw | |
parent | 40f962ffeba627cd65121a7b2883f145e79c9c4c (diff) | |
download | qemu-5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c.zip qemu-5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c.tar.gz qemu-5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c.tar.bz2 |
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/hw')
-rw-r--r-- | include/hw/virtio/vhost.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h index 5ee3065..1a9fc65 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 */ |