Re: [PATCH 3/6] tests/functional/test_kvm.py: Use -cpu max, not cortex-a72
On 5/7/26 14:47, Peter Maydell wrote:
The test_kvm test claims to run on any accelerator supporting
nested virtualization, but it specifies the cortex-a72 CPU.
This doesn't exist for KVM-only builds. Use max instead.
This fixes a failure like
Output: qemu-system-aarch64: unable to find CPU model 'cortex-a72'
Signed-off-by: Peter Maydell
---
tests/functional/aarch64/test_kvm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/functional/aarch64/test_kvm.py
b/tests/functional/aarch64/test_kvm.py
index 7545f5ed55..fed18aba60 100755
--- a/tests/functional/aarch64/test_kvm.py
+++ b/tests/functional/aarch64/test_kvm.py
@@ -38,7 +38,7 @@ def _launch_guest(self, kvm_mode="nvhe"):
kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
f"console=ttyAMA0 kvm-arm.mode={kvm_mode}")
-self.vm.add_args("-cpu", "cortex-a72")
+self.vm.add_args("-cpu", "max")
self.vm.add_args("-machine", "virt,gic-version=3,virtualization=on",
'-kernel', kernel_path,
'-append', kernel_command_line)
Reviewed-by: Richard Henderson
r~
Re: [PATCH 3/6] tests/functional/test_kvm.py: Use -cpu max, not cortex-a72
On 7/5/26 21:47, Peter Maydell wrote: The test_kvm test claims to run on any accelerator supporting nested virtualization, but it specifies the cortex-a72 CPU. This doesn't exist for KVM-only builds. Use max instead. This fixes a failure like Output: qemu-system-aarch64: unable to find CPU model 'cortex-a72' Signed-off-by: Peter Maydell --- tests/functional/aarch64/test_kvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé
[PATCH 3/6] tests/functional/test_kvm.py: Use -cpu max, not cortex-a72
The test_kvm test claims to run on any accelerator supporting
nested virtualization, but it specifies the cortex-a72 CPU.
This doesn't exist for KVM-only builds. Use max instead.
This fixes a failure like
Output: qemu-system-aarch64: unable to find CPU model 'cortex-a72'
Signed-off-by: Peter Maydell
---
tests/functional/aarch64/test_kvm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/functional/aarch64/test_kvm.py
b/tests/functional/aarch64/test_kvm.py
index 7545f5ed55..fed18aba60 100755
--- a/tests/functional/aarch64/test_kvm.py
+++ b/tests/functional/aarch64/test_kvm.py
@@ -38,7 +38,7 @@ def _launch_guest(self, kvm_mode="nvhe"):
kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
f"console=ttyAMA0 kvm-arm.mode={kvm_mode}")
-self.vm.add_args("-cpu", "cortex-a72")
+self.vm.add_args("-cpu", "max")
self.vm.add_args("-machine", "virt,gic-version=3,virtualization=on",
'-kernel', kernel_path,
'-append', kernel_command_line)
--
2.43.0
