From: Gleb Natapov <[email protected]>

Was dropped somewhere during merge. Without this info cpus doesn't show
cpu halted state.

Signed-off-by: Gleb Natapov <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>

diff --git a/qemu-kvm.h b/qemu-kvm.h
index 1c42e82..4be6afd 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -1157,6 +1157,7 @@ static inline void kvm_arch_get_registers(CPUState *env)
 {
     kvm_arch_save_regs(env);
     kvm_arch_save_mpstate(env);
+    env->halted = (env->mp_state == KVM_MP_STATE_HALTED);
 }
 
 static inline void kvm_arch_put_registers(CPUState *env)
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to