whpx: i386: skip TSC read for MMIO exits
PATCH 1/1 whpx: i386: skip TSC read for MMIO exits
The TSC value isn't needed for vmexit processing.
Signed-off-by Mohamed Mediouni <[email protected]>
--- target/i386/whpx/whpx-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/whpx/whpx-all.c +1 -1
@@ -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)