[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/5] tests/qtests: override "force-legacy" for gpio virtio-mmi
From: |
Alex Bennée |
Subject: |
[PATCH v2 3/5] tests/qtests: override "force-legacy" for gpio virtio-mmio tests |
Date: |
Fri, 25 Nov 2022 17:30:41 +0000 |
The GPIO device is a VIRTIO_F_VERSION_1 devices but running with a
legacy MMIO interface we miss out that feature bit causing confusion.
For the GPIO test force the mmio bus to support non-legacy so we can
properly test it.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1333
---
tests/qtest/libqos/virtio-gpio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/qtest/libqos/virtio-gpio.c b/tests/qtest/libqos/virtio-gpio.c
index 762aa6695b..f22d7b5eb5 100644
--- a/tests/qtest/libqos/virtio-gpio.c
+++ b/tests/qtest/libqos/virtio-gpio.c
@@ -154,7 +154,8 @@ static void virtio_gpio_register_nodes(void)
QOSGraphEdgeOptions edge_opts = { };
/* vhost-user-gpio-device */
- edge_opts.extra_device_opts = "id=gpio0,chardev=chr-vhost-user-test";
+ edge_opts.extra_device_opts = "id=gpio0,chardev=chr-vhost-user-test "
+ "-global virtio-mmio.force-legacy=false";
qos_node_create_driver("vhost-user-gpio-device",
virtio_gpio_device_create);
qos_node_consumes("vhost-user-gpio-device", "virtio-bus", &edge_opts);
--
2.34.1
- [PATCH for 7.2-rc? v2 0/5] continuing efforts to fix vhost-user issues, Alex Bennée, 2022/11/25
- [PATCH v2 1/5] include/hw: attempt to document VirtIO feature variables, Alex Bennée, 2022/11/25
- [PATCH v2 2/5] include/hw: VM state takes precedence in virtio_device_should_start, Alex Bennée, 2022/11/25
- [PATCH v2 4/5] hw/virtio: ensure a valid host_feature set for virtio-user-gpio, Alex Bennée, 2022/11/25
- [PATCH v2 3/5] tests/qtests: override "force-legacy" for gpio virtio-mmio tests,
Alex Bennée <=
- [PATCH v2 5/5] vhost: enable vrings in vhost_dev_start() for vhost-user devices, Alex Bennée, 2022/11/25
- Re: [PATCH for 7.2-rc? v2 0/5] continuing efforts to fix vhost-user issues, Stefan Weil, 2022/11/25
- Re: [PATCH for 7.2-rc? v2 0/5] continuing efforts to fix vhost-user issues, Alex Bennée, 2022/11/25