whpx: i386: skip TSC read for MMIO exits
The TSC value isn't needed for vmexit processing. Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Link: https://lore.kernel.org/r/20260324151323.74473-4-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Mohamed Mediouni committed
Mar 24, 2026 at 16:13 UTC
fe8c0a8b7d7847892b151c3b0f363b8a49ef2f5c
1 file changed
+1
-1
target/i386/whpx/whpx-all.c
+1
-1
@@ -606,7 +606,7 @@ void whpx_get_registers(CPUState *cpu, WHPXStateLevel level)
606
607
assert(cpu_is_stopped(cpu) || qemu_cpu_is_self(cpu));
608
609
- if (!env->tsc_valid) {
609
+ if (level > WHPX_LEVEL_FAST_RUNTIME_STATE && !env->tsc_valid) {
610
whpx_get_tsc(cpu);
611
env->tsc_valid = !runstate_is_running();
612
}