Skip to contentSkip to conversation

sync halt state into env

PATCH Applied Gleb Natapov 2 participants 2 messages Sep 9, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sync halt state into env

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

qemu-kvm.h +1 -0
index 1c42e82..4be6afd 100644
@@ -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.

Applied
#1 lore raw
Quoted 3 lines · Gleb Natapov

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

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function