diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-16 10:40:00 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-04 14:43:46 +0200 |
| commit | a9c2afd74b887b4775f425b72be1888220594bb5 (patch) | |
| tree | 050836d1d953168263554bf8e1568ffd34ceee11 /accel | |
| parent | 80a1efdedd3099cde51cabf91789e037a6af11df (diff) | |
| download | focaccia-qemu-a9c2afd74b887b4775f425b72be1888220594bb5.tar.gz focaccia-qemu-a9c2afd74b887b4775f425b72be1888220594bb5.zip | |
accel/whpx: Expose whpx_enabled() to common code
Currently whpx_enabled() is restricted to target-specific code. By defining CONFIG_WHPX_IS_POSSIBLE we allow its use anywhere. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250703173248.44995-26-philmd@linaro.org>
Diffstat (limited to 'accel')
| -rw-r--r-- | accel/stubs/meson.build | 1 | ||||
| -rw-r--r-- | accel/stubs/whpx-stub.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/accel/stubs/meson.build b/accel/stubs/meson.build index 4c34287215..9dfc4f9dda 100644 --- a/accel/stubs/meson.build +++ b/accel/stubs/meson.build @@ -4,5 +4,6 @@ system_stubs_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c')) system_stubs_ss.add(when: 'CONFIG_TCG', if_false: files('tcg-stub.c')) system_stubs_ss.add(when: 'CONFIG_HVF', if_false: files('hvf-stub.c')) system_stubs_ss.add(when: 'CONFIG_NVMM', if_false: files('nvmm-stub.c')) +system_stubs_ss.add(when: 'CONFIG_WHPX', if_false: files('whpx-stub.c')) specific_ss.add_all(when: ['CONFIG_SYSTEM_ONLY'], if_true: system_stubs_ss) diff --git a/accel/stubs/whpx-stub.c b/accel/stubs/whpx-stub.c new file mode 100644 index 0000000000..c564c89fd0 --- /dev/null +++ b/accel/stubs/whpx-stub.c @@ -0,0 +1,12 @@ +/* + * WHPX stubs for QEMU + * + * Copyright (c) Linaro + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "qemu/osdep.h" +#include "system/whpx.h" + +bool whpx_allowed; |