From b04363c24055f3cc9a458bf723ebebdfbabb578c Mon Sep 17 00:00:00 2001 From: Philippe Mathieu-Daudé Date: Thu, 3 Feb 2022 13:16:58 +0100 Subject: accel/hax: Introduce CONFIG_HAX_IS_POSSIBLE Mirror "sysemu/kvm.h" #ifdef'ry to define CONFIG_HAX_IS_POSSIBLE, expose hax_allowed to hax_enabled() macro. Suggested-by: Richard Henderson Reviewed-by: Paolo Bonzini Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20220207075426.81934-9-f4bug@amsat.org> --- accel/stubs/hax-stub.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'accel') diff --git a/accel/stubs/hax-stub.c b/accel/stubs/hax-stub.c index 49077f88e3..2fe31aaa9a 100644 --- a/accel/stubs/hax-stub.c +++ b/accel/stubs/hax-stub.c @@ -16,6 +16,8 @@ #include "qemu/osdep.h" #include "sysemu/hax.h" +bool hax_allowed; + int hax_sync_vcpus(void) { return 0; -- cgit v1.2.3-55-g7522