diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-02-03 13:16:58 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-03-06 13:15:42 +0100 |
commit | b04363c24055f3cc9a458bf723ebebdfbabb578c (patch) | |
tree | bd5d3538a5318d7b1be766c0982857ac4d918545 /accel | |
parent | f94bee49d2f391a8bf1b1f9a3353b7b9fdb8ca20 (diff) | |
download | qemu-b04363c24055f3cc9a458bf723ebebdfbabb578c.zip qemu-b04363c24055f3cc9a458bf723ebebdfbabb578c.tar.gz qemu-b04363c24055f3cc9a458bf723ebebdfbabb578c.tar.bz2 |
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 <richard.henderson@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220207075426.81934-9-f4bug@amsat.org>
Diffstat (limited to 'accel')
-rw-r--r-- | accel/stubs/hax-stub.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel/stubs/hax-stub.c b/accel/stubs/hax-stub.c index 49077f8..2fe31aa 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; |