Commit ccaa2fb7c2 for qemu.org

commit ccaa2fb7c231d231a58126923ec83b99fe2735db
Author: Mohamed Mediouni <mohamed@unpredictable.fr>
Date:   Tue Mar 24 16:13:15 2026 +0100

    whpx: i386: skip XCRs read for MMIO exits

    The XCR0 value isn't currently needed for vmexit processing.

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

diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c
index ac03445d9d..c0c7ba9177 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);