[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine fo
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo, accel=bar' |
Date: |
Tue, 3 Dec 2024 10:21:48 +0100 |
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
functional tests.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/functional/test_virtio_gpu.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/functional/test_virtio_gpu.py
b/tests/functional/test_virtio_gpu.py
index d5027487ac4..cc0ec234861 100755
--- a/tests/functional/test_virtio_gpu.py
+++ b/tests/functional/test_virtio_gpu.py
@@ -61,7 +61,8 @@ def test_virtio_vga_virgl(self):
self.vm.set_console()
self.vm.add_args("-cpu", "host")
self.vm.add_args("-m", "2G")
- self.vm.add_args("-machine", "pc,accel=kvm")
+ self.vm.add_args('-accel', 'kvm')
+ self.vm.add_args("-machine", "pc")
self.vm.add_args("-device", "virtio-vga-gl")
self.vm.add_args("-display", "egl-headless")
self.vm.add_args(
@@ -118,10 +119,11 @@ def test_vhost_user_vga_virgl(self):
)
self.vm.set_console()
+ self.vm.add_args('-accel', 'kvm')
self.vm.add_args("-cpu", "host")
self.vm.add_args("-m", "2G")
self.vm.add_args("-object", "memory-backend-memfd,id=mem,size=2G")
- self.vm.add_args("-machine", "pc,memory-backend=mem,accel=kvm")
+ self.vm.add_args("-machine", "pc,memory-backend=mem")
self.vm.add_args("-chardev", "socket,id=vug,fd=%d" %
qemu_sock.fileno())
self.vm.add_args("-device", "vhost-user-vga,chardev=vug")
self.vm.add_args("-display", "egl-headless")
--
2.45.2
- [PATCH 0/7] cli: Remove mentions of legacy '-machine foo, accel=bar' command line, Philippe Mathieu-Daudé, 2024/12/03
- [PATCH 1/7] tests/functional/test_ppc64_hv: Remove legacy '-machine foo, accel=bar', Philippe Mathieu-Daudé, 2024/12/03
- [PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo, accel=bar',
Philippe Mathieu-Daudé <=
- [PATCH 3/7] tests/qtest/fuzz: Remove legacy '-machine foo,accel=bar', Philippe Mathieu-Daudé, 2024/12/03
- [PATCH 4/7] scripts/device-crash-test: Remove legacy '-machine foo, accel=bar', Philippe Mathieu-Daudé, 2024/12/03
- [PATCH 5/7] accel/tcg: Remove mentions of legacy '-machine foo, accel=bar', Philippe Mathieu-Daudé, 2024/12/03
- [PATCH 6/7] accel/kvm: Remove mentions of legacy '-machine foo, accel=bar', Philippe Mathieu-Daudé, 2024/12/03