On 23/6/25 13:59, Philippe Mathieu-Daudé wrote:
On 23/6/25 10:11, Thomas Huth wrote:
On 20/06/2025 15.07, Philippe Mathieu-Daudé wrote:
On macOS this test fails:

   qemu-system-aarch64: mach-virt: HVF does not support providing Virtualization extensions to the guest CPU

Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
  tests/functional/test_aarch64_xen.py | 1 +
  1 file changed, 1 insertion(+)

diff --git a/tests/functional/test_aarch64_xen.py b/tests/functional/ test_aarch64_xen.py
index 339904221b0..261d796540d 100755
--- a/tests/functional/test_aarch64_xen.py
+++ b/tests/functional/test_aarch64_xen.py
@@ -33,6 +33,7 @@ def launch_xen(self, xen_path):
          """
          Launch Xen with a dom0 guest kernel
          """
+        self.require_accelerator("tcg") # virtualization=on

What about kvm (or xen) as accelerator? Would that work?

IIUC this tests boots a nested Xen guest running at Aarch64 EL2,
and at this point we can only run EL2/EL3 on TCG. HVF and KVM
can not for now (we are working on it).

I'll update the description with:

  Currently QEMU only support accelerating EL0 and EL1, so features
  requiring EL2 (like virtualization) or EL3 must be emulated with TCG.

I don't know if Xen can accelerate EL2, it would need support for
such hardware (like the Apple Silicon M4). Cc'ing Xen folks to
figure it out.


Reply via email to