Message ID | 4B0C6CB7.6070408@web.de |
---|---|
State | New |
Headers | show |
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)
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>