@samitouri / QOSamiQemu / commits / 7c84752396

whpx: i386: fix xsaves enablement in legacy probing path

Without this, Linux will crash in a configuration where xsaves is expected. Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Link: https://lore.kernel.org/r/20260812082814.27217-2-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Mohamed Mediouni committed Aug 12, 2026 at 10:28 UTC 7c84752396d16c3379091fa8341c902aa67ec3d3
1 file changed +1 -1
target/i386/whpx/whpx-cpu-legacy.c
+1 -1
@@ -113,7 +113,7 @@ uint32_t whpx_get_supported_cpuid_legacy(uint32_t func, uint32_t idx,
113 if (idx == 0) {
114 eax = supported_xcr0;
115 } else if (idx == 1) {
116 - eax &= CPUID_XSAVE_XSAVEOPT | CPUID_XSAVE_XGETBV1;
116 + eax &= CPUID_XSAVE_XSAVEOPT | CPUID_XSAVE_XGETBV1 | CPUID_XSAVE_XSAVES;
117 if (!whpx_has_xsaves()) {
118 eax &= ~CPUID_XSAVE_XSAVES;
119 }