Skip to contentSkip to conversation

kvm_arch_get_registers() shouldn't be called directly

PATCH New Gleb Natapov 1 participant 1 message Sep 10, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm_arch_get_registers() shouldn't be called directly

Direct call to kvm_arch_get_registers() bypass logic in cpu_synchronize_state()

target-i386/helper.c +1 -1
index 27063e5..8abbed0 100644
@@ -744,7 +744,7 @@ void cpu_dump_state(CPUState *env, FILE *f,
     static const char *seg_name[6] = { "ES", "CS", "SS", "DS", "FS", "GS" };
 
     if (kvm_enabled())
-        kvm_arch_get_registers(env);
+        cpu_synchronize_state(env);
 
     eflags = env->eflags;
 #ifdef TARGET_X86_64

--
Gleb.