diff mbox

sync halt state into env

Message ID 20090909163323.GJ22885@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gleb Natapov Sept. 9, 2009, 4:33 p.m. UTC
Was dropped somewhere during merge. Without this info cpus doesn't show
cpu halted state.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
--
			Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Avi Kivity Sept. 9, 2009, 4:35 p.m. UTC | #1
On 09/09/2009 07:33 PM, Gleb Natapov wrote:
> Was dropped somewhere during merge. Without this info cpus doesn't show
> cpu halted state.
>    

Applied, thanks.
diff mbox

Patch

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)