From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: [PATCH] sync halt state into env Date: Wed, 9 Sep 2009 19:33:23 +0300 Message-ID: <20090909163323.GJ22885@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: avi@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:2337 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752714AbZIIQdW (ORCPT ); Wed, 9 Sep 2009 12:33:22 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n89GXQpc029795 for ; Wed, 9 Sep 2009 12:33:26 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Was dropped somewhere during merge. Without this info cpus doesn't show cpu halted state. Signed-off-by: Gleb Natapov 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.