]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
whpx: i386: skip XCRs read for MMIO exits
authorMohamed Mediouni <mohamed@unpredictable.fr>
Tue, 24 Mar 2026 15:13:15 +0000 (16:13 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Mar 2026 17:22:27 +0000 (18:22 +0100)
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>
target/i386/whpx/whpx-all.c

index ac03445d9da19dd75a7bd297fedeb7d23bae7554..c0c7ba917723ca99ca40ab88da9b1af6da48b4bc 100644 (file)
@@ -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);