Commit f89e91a4f5 for qemu.org

commit f89e91a4f5c2f32fba86ba6a1051b405b2c8ab7d
Author: Boden Randin <bodenrandin1@gmail.com>
Date:   Sat Sep 19 19:03:20 2026 -0700

    whpx: i386: avoid updating hflags for vmexits

    whpx_get_registers_for_vmexit only refreshes GPRs, RIP and RFLAGS.

    x86_update_hflags() depends on state not refreshed here, while the code
    using the fast runtime state does not depend on the hflags it recomputes.

    Signed-off-by: Boden Randin <bodenrandin1@gmail.com>
    Reviewed-by: Mohamed Mediouni <mohamed@unpredictable.fr>

    Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>

diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c
index f5f5c3b462..fd3b2acb58 100644
--- a/target/i386/whpx/whpx-all.c
+++ b/target/i386/whpx/whpx-all.c
@@ -744,8 +744,6 @@ static void whpx_get_registers_for_vmexit(CPUState *cpu, WHPXStateLevel level)
     rflags_to_lflags(env);

     assert(idx == RTL_NUMBER_OF(whpx_register_names_for_vmexit));
-
-    x86_update_hflags(env);
 }

 static void whpx_get_legacy_fp_registers(CPUState *cpu, WHPXStateLevel level)