[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v4 11/15] tests/qemu-iotests: Allow passing a -cpu option in
From: |
Fabiano Rosas |
Subject: |
[RFC PATCH v4 11/15] tests/qemu-iotests: Allow passing a -cpu option in the QEMU cmdline |
Date: |
Thu, 19 Jan 2023 10:54:20 -0300 |
We're removing the default CPU from aarch64. Every QEMU invocation is
expected to have an explicit -cpu value.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
tests/qemu-iotests/testenv.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py
index a864c74b12..4bb80ea656 100644
--- a/tests/qemu-iotests/testenv.py
+++ b/tests/qemu-iotests/testenv.py
@@ -244,6 +244,13 @@ def __init__(self, imgfmt: str, imgproto: str, aiomode:
str,
if self.qemu_prog.endswith(f'qemu-system-{suffix}'):
self.qemu_options += f' -machine {machine}'
+ cpu_map = (
+ ('aarch64', 'cortex-a57'),
+ )
+ for suffix, cpu in cpu_map:
+ if self.qemu_prog.endswith(f'qemu-system-{suffix}'):
+ self.qemu_options += f' -cpu {cpu}'
+
# QEMU_DEFAULT_MACHINE
self.qemu_default_machine = get_default_machine(self.qemu_prog)
--
2.35.3
- Re: [RFC PATCH v4 06/15] tests/qtest: Add qtest_get_machine_args, (continued)
[RFC PATCH v4 07/15] tests/qtest: Adjust qom-test to always set a -cpu option, Fabiano Rosas, 2023/01/19
[RFC PATCH v4 08/15] tests/qtest: Adjust test-hmp to always pass -cpu option, Fabiano Rosas, 2023/01/19
[RFC PATCH v4 09/15] tests/qtest: Adjust device-introspect-test to always set a -cpu option, Fabiano Rosas, 2023/01/19
[RFC PATCH v4 10/15] tests/qtest: aarch64: Set -cpu for numa-test, Fabiano Rosas, 2023/01/19
[RFC PATCH v4 11/15] tests/qemu-iotests: Allow passing a -cpu option in the QEMU cmdline,
Fabiano Rosas <=
[RFC PATCH v4 12/15] tests/tcg: Do not build/run TCG tests if TCG is disabled, Fabiano Rosas, 2023/01/19
[RFC PATCH v4 13/15] target/avocado: Pass parameters to migration test on aarch64, Fabiano Rosas, 2023/01/19
[RFC PATCH v4 15/15] arm/Kconfig: Do not build TCG-only boards on a KVM-only build, Fabiano Rosas, 2023/01/19