* [PATCH] sync halt state into env
@ 2009-09-09 16:33 Gleb Natapov
2009-09-09 16:35 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Gleb Natapov @ 2009-09-09 16:33 UTC (permalink / raw)
To: avi; +Cc: kvm
Was dropped somewhere during merge. Without this info cpus doesn't show
cpu halted state.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
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)
--
Gleb.
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-09 16:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-09 16:33 [PATCH] sync halt state into env Gleb Natapov
2009-09-09 16:35 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).