summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKangjie Xu2022-10-17 11:25:47 +0200
committerMichael S. Tsirkin2022-11-07 19:12:20 +0100
commit69e1c14aa22284f933a6ea134b96d5cb5a88a94d (patch)
tree069835138fa0dff571781a1634dce2ea0f826d0c /include
parentvirtio: introduce virtio_queue_enable() (diff)
downloadqemu-69e1c14aa22284f933a6ea134b96d5cb5a88a94d.tar.gz
qemu-69e1c14aa22284f933a6ea134b96d5cb5a88a94d.tar.xz
qemu-69e1c14aa22284f933a6ea134b96d5cb5a88a94d.zip
virtio: core: vq reset feature negotation support
A a new command line parameter "queue_reset" is added. Meanwhile, the vq reset feature is disabled for pre-7.2 machines. Signed-off-by: Kangjie Xu <kangjie.xu@linux.alibaba.com> Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20221017092558.111082-5-xuanzhuo@linux.alibaba.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/virtio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h
index b00b3fcf31..1423dba379 100644
--- a/include/hw/virtio/virtio.h
+++ b/include/hw/virtio/virtio.h
@@ -313,7 +313,9 @@ typedef struct VirtIORNGConf VirtIORNGConf;
DEFINE_PROP_BIT64("iommu_platform", _state, _field, \
VIRTIO_F_IOMMU_PLATFORM, false), \
DEFINE_PROP_BIT64("packed", _state, _field, \
- VIRTIO_F_RING_PACKED, false)
+ VIRTIO_F_RING_PACKED, false), \
+ DEFINE_PROP_BIT64("queue_reset", _state, _field, \
+ VIRTIO_F_RING_RESET, true)
hwaddr virtio_queue_get_desc_addr(VirtIODevice *vdev, int n);
bool virtio_queue_enabled_legacy(VirtIODevice *vdev, int n);