Skip to contentSkip to conversation

whpx: i386: skip TSC read for MMIO exits

PATCH New Mohamed Mediouni 1 participant 1 message Mar 23

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 whpx: i386: skip TSC read for MMIO exits

The TSC value isn't needed for vmexit processing.

---
 target/i386/whpx/whpx-all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/whpx/whpx-all.c +1 -1
index 015c0f1dc9..5ac7fbdf7a 100644
@@ -606,7 +606,7 @@ void whpx_get_registers(CPUState *cpu, WHPXStateLevel level)
 
     assert(cpu_is_stopped(cpu) || qemu_cpu_is_self(cpu));
 
-    if (!env->tsc_valid) {
+    if (level > WHPX_LEVEL_FAST_RUNTIME_STATE && !env->tsc_valid) {
         whpx_get_tsc(cpu);
         env->tsc_valid = !runstate_is_running();
     }
Signature · 1 line
2.50.1 (Apple Git-155)