On 5/7/26 14:47, Peter Maydell wrote:
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 <[email protected]>
---
  tests/functional/aarch64/test_hotplug_pci.py | 1 +
  1 file changed, 1 insertion(+)

diff --git a/tests/functional/aarch64/test_hotplug_pci.py 
b/tests/functional/aarch64/test_hotplug_pci.py
index bf67720431..9ee1446a83 100755
--- a/tests/functional/aarch64/test_hotplug_pci.py
+++ b/tests/functional/aarch64/test_hotplug_pci.py
@@ -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',

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to