From b13ac803090277f1ad9c5b1735f6dad2b82f0faf Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 4 Jul 2025 19:48:13 +0100 Subject: [PATCH] qemu: do not pass -cpu max,pcid=off unless it's for x86_64 qemu-system-aarch64: can't apply global max-arm-cpu.pcid=off: Property 'max-arm-cpu.pcid' not found --- tests/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index acc653f76..3d7b3eb4c 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -135,13 +135,15 @@ class Image: return result def vm(self, options: Sequence[str] = (), args: Sequence[str] = ()) -> CompletedProcess: + need_hyperv_workaround = os.uname().machine == "x86_64" + result = self.mkosi( "vm", [ "--runtime-build-sources=no", "--vsock=yes", # TODO: Drop once both Hyper-V bugs are fixed in Github Actions. - "--qemu-args=-cpu max,pcid=off", + *(["--qemu-args=-cpu max,pcid=off"] if need_hyperv_workaround else []), "--ram=2G", "--ephemeral=yes", "--register=no", -- 2.47.3