@samitouri / QOSamiQemu / commits / 91a76b2c2d

whpx: preparatory changes before switching over from winhvemulation

Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Link: https://lore.kernel.org/r/20260223233950.96076-8-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Mohamed Mediouni committed Feb 24, 2026 at 00:39 UTC 91a76b2c2d425f6d918c4f7d7201d9a901a14452
3 files changed +6 -1
target/i386/cpu.h
+1 -1
@@ -2286,7 +2286,7 @@ typedef struct CPUArchState {
2286 QEMUTimer *xen_periodic_timer;
2287 QemuMutex xen_timers_lock;
2288 #endif
2289 -#if defined(CONFIG_HVF) || defined(CONFIG_MSHV)
2289 +#if defined(CONFIG_HVF) || defined(CONFIG_MSHV) || defined(CONFIG_WHPX)
2290 void *emu_mmio_buf;
2291 #endif
2292
target/i386/emulate/meson.build
+1
@@ -7,3 +7,4 @@ emulator_files = files(
7
8 i386_system_ss.add(when: [hvf, 'CONFIG_HVF'], if_true: emulator_files)
9 i386_system_ss.add(when: 'CONFIG_MSHV', if_true: emulator_files)
10 +i386_system_ss.add(when: 'CONFIG_WHPX', if_true: emulator_files)
target/i386/mshv/meson.build
+4
@@ -6,3 +6,7 @@ i386_mshv_ss.add(files(
6 ))
7
8 i386_system_ss.add_all(when: 'CONFIG_MSHV', if_true: i386_mshv_ss)
9 +
10 +i386_system_ss.add(when: 'CONFIG_WHPX', if_true: files(
11 + 'x86.c',
12 +))