diff options
author | Kangjie Xu | 2022-10-17 11:25:47 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2022-11-07 19:12:20 +0100 |
commit | 69e1c14aa22284f933a6ea134b96d5cb5a88a94d (patch) | |
tree | 069835138fa0dff571781a1634dce2ea0f826d0c /hw/core | |
parent | virtio: introduce virtio_queue_enable() (diff) | |
download | qemu-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 'hw/core')
-rw-r--r-- | hw/core/machine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c index aa520e74a8..907fa78ff0 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -40,7 +40,9 @@ #include "hw/virtio/virtio-pci.h" #include "qom/object_interfaces.h" -GlobalProperty hw_compat_7_1[] = {}; +GlobalProperty hw_compat_7_1[] = { + { "virtio-device", "queue_reset", "false" }, +}; const size_t hw_compat_7_1_len = G_N_ELEMENTS(hw_compat_7_1); GlobalProperty hw_compat_7_0[] = { |