diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-07-01 17:22:27 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-07-01 17:22:27 +0100 |
| commit | 767df742fbc9e6cc06e9309685407beb2565c272 (patch) | |
| tree | 8958d3e1f02a8324a701237f29d0e546cf2db9cc /python/qemu/utils/accel.py | |
| parent | f4b5fbeff6be3797881e69cbf42cc689a4e316c4 (diff) | |
| download | focaccia-qemu-767df742fbc9e6cc06e9309685407beb2565c272.tar.gz focaccia-qemu-767df742fbc9e6cc06e9309685407beb2565c272.zip | |
tests/functional: Add hvf_available() helper
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-id: 20250623121845.7214-26-philmd@linaro.org [PMM: tweaks to satisfy the python linter CI job] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'python/qemu/utils/accel.py')
| -rw-r--r-- | python/qemu/utils/accel.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/qemu/utils/accel.py b/python/qemu/utils/accel.py index 386ff640ca..f915b64669 100644 --- a/python/qemu/utils/accel.py +++ b/python/qemu/utils/accel.py @@ -82,3 +82,12 @@ def tcg_available(qemu_bin: str) -> bool: @param qemu_bin (str): path to the QEMU binary """ return 'tcg' in list_accel(qemu_bin) + + +def hvf_available(qemu_bin: str) -> bool: + """ + Check if HVF is available. + + @param qemu_bin (str): path to the QEMU binary + """ + return 'hvf' in list_accel(qemu_bin) |