diff options
| author | Jason Wang | 2021-09-03 11:10:14 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2021-09-04 23:34:05 +0200 |
| commit | 5fc13603a6bec4451cf1062ae6bdb6a2ab81a69c (patch) | |
| tree | f4f74d31d43c4f93bf321b0fd813882914dee0cc /include | |
| parent | vhost_net: remove the meaningless assignment in vhost_net_start_one() (diff) | |
| download | qemu-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.h | 2 |
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 */ |
