On 16/9/25 18:48, Magnus Kulke wrote:
Introduce a Meson feature option and default-config entry to allow
building QEMU with MSHV (Microsoft Hypervisor) acceleration support.
This is the first step toward implementing an MSHV backend in QEMU.
Signed-off-by: Magnus Kulke <[email protected]>
---
accel/Kconfig | 3 +++
meson.build | 10 ++++++++++
meson_options.txt | 2 ++
scripts/meson-buildoptions.sh | 3 +++
4 files changed, 18 insertions(+)
diff --git a/meson.build b/meson.build
index 3d73873356..6bd1d897e3 100644
--- a/meson.build
+++ b/meson.build
+if get_option('mshv').allowed() and host_os == 'linux'
+ if get_option('mshv').enabled() and host_machine.cpu() != 'x86_64'
+ error('mshv accelerator requires x64_64 host')
Either:
error('MSHV accelerator requires x86_64 host')
Or simply:
error('MSHV accelerator requires 64-bit host')
+ endif
+ accelerators += 'CONFIG_MSHV'
+endif