From: Mohamed Mediouni Date: Tue, 24 Mar 2026 15:13:15 +0000 (+0100) Subject: whpx: i386: skip XCRs read for MMIO exits X-Git-Tag: v11.0.0-rc2~16^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ccaa2fb7c231d231a58126923ec83b99fe2735db;p=thirdparty%2Fqemu.git whpx: i386: skip XCRs read for MMIO exits The XCR0 value isn't currently needed for vmexit processing. Signed-off-by: Mohamed Mediouni Link: https://lore.kernel.org/r/20260324151323.74473-5-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c index ac03445d9da..c0c7ba91772 100644 --- a/target/i386/whpx/whpx-all.c +++ b/target/i386/whpx/whpx-all.c @@ -689,7 +689,9 @@ void whpx_get_registers(CPUState *cpu, WHPXStateLevel level) * Extended control registers needs to be handled separately depending * on whether xsave is supported/enabled or not. */ - whpx_get_xcrs(cpu); + if (level > WHPX_LEVEL_FAST_RUNTIME_STATE) { + whpx_get_xcrs(cpu); + } /* 16 XMM registers */ assert(whpx_register_names[idx] == WHvX64RegisterXmm0);