]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional/test_hotplug_pci.py: Require TCG
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 7 May 2026 19:47:27 +0000 (20:47 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 15 May 2026 08:51:15 +0000 (09:51 +0100)
The hotplug test asks for the cortex-a57 CPU type, so it will
fail on an AArch64 system using KVM where TCG is not compiled
into QEMU and the default accelerator is KVM:

   Output: qemu-system-aarch64: kvm_init_vcpu: kvm_arch_init_vcpu failed (0): Invalid argument

Restrict it to the TCG accelerator.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260507194728.2034696-6-peter.maydell@linaro.org

tests/functional/aarch64/test_hotplug_pci.py

index bf677204319e54e3e02dcddd48b7f10128b9e81c..9ee1446a8317b95252f24ba5fa1a41ff4baf9158 100755 (executable)
@@ -27,6 +27,7 @@ class HotplugPCI(LinuxKernelTest):
     def test_hotplug_pci(self):
 
         self.set_machine('virt')
+        self.require_accelerator('tcg')
 
         self.vm.add_args('-m', '512M',
                          '-cpu', 'cortex-a57',