diff mbox

[RESEND] kvm: x86: Fix merge artifact of f8d926e9 about mp_state

Message ID 4B0C6CB7.6070408@web.de
State New
Headers show

Commit Message

Jan Kiszka Nov. 24, 2009, 11:31 p.m. UTC
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
diff mbox

Patch

diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index d6bc23a..89fd7a5 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -717,12 +717,8 @@  int kvm_arch_put_registers(CPUState *env)
     ret = kvm_put_mp_state(env);
     if (ret < 0)
         return ret;
 
-    ret = kvm_get_mp_state(env);
-    if (ret < 0)
-        return ret;
-
     return 0;
 }
 
 int kvm_arch_get_registers(CPUState *env)
@@ -744,8 +740,12 @@  int kvm_arch_get_registers(CPUState *env)
     ret = kvm_get_msrs(env);
     if (ret < 0)
         return ret;
 
+    ret = kvm_get_mp_state(env);
+    if (ret < 0)
+        return ret;
+
     return 0;
 }
 
 int kvm_arch_pre_run(CPUState *env, struct kvm_run *run)