On 7/5/26 21:47, Peter Maydell wrote:
If you try to run the functional tests on an AArch64 host which doesn't
support nested virtualization in KVM, the UEFI test fails with:

    Output: qemu-system-aarch64: mach-virt: host kernel KVM does
    not support providing Virtualization extensions to the guest CPU

Catch the VMLaunchFailure exception and if it matches the error
messages the virt board puts out for virtualization not being
supported, skip the test.

Signed-off-by: Peter Maydell <[email protected]>
---
  tests/functional/aarch64/test_virt_vbsa.py | 10 +++++++++-
  1 file changed, 9 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to