@samitouri / QOSamiQemu / commits / 219f309c24

whpx: i386: enable x2apic by default for user-mode LAPIC

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

Mohamed Mediouni committed Apr 22, 2026 at 23:41 UTC 219f309c2431c7ec5c53899bf6422973f0c937ce
1 file changed +7
target/i386/whpx/whpx-all.c
+7
@@ -2366,11 +2366,18 @@ error:
2366 return ret;
2367 }
2368
2369 +static PropValue whpx_default_props[] = {
2370 + { "x2apic", "on" },
2371 + { NULL, NULL },
2372 +};
2373 +
2374 +
2375 void whpx_cpu_instance_init(CPUState *cs)
2376 {
2377 X86CPU *cpu = X86_CPU(cs);
2378
2379 host_cpu_instance_init(cpu);
2380 + x86_cpu_apply_props(cpu, whpx_default_props);
2381 }
2382
2383 /*