From: Jason Wang Date: Fri, 3 Sep 2021 09:10:14 +0000 (+0800) Subject: vhost: use unsigned int for nvqs X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c;p=qemu.git 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 Signed-off-by: Jason Wang Message-Id: <20210903091031.47303-5-jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- 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 */