qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 2637c75] kvm_arch_get_registers() shouldn't be c


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 2637c75] kvm_arch_get_registers() shouldn't be called directly
Date: Fri, 11 Sep 2009 18:31:58 -0000

From: Gleb Natapov <address@hidden>

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

Signed-off-by: Gleb Natapov <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/target-i386/helper.c b/target-i386/helper.c
index 27063e5..8abbed0 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]