From patchwork Wed Sep 9 16:33:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 46417 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n89GXSA7007344 for ; Wed, 9 Sep 2009 16:33:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752913AbZIIQdX (ORCPT ); Wed, 9 Sep 2009 12:33:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752886AbZIIQdX (ORCPT ); Wed, 9 Sep 2009 12:33:23 -0400 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 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n89GXOKm013700; Wed, 9 Sep 2009 12:33:25 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id C468A18D467; Wed, 9 Sep 2009 19:33:23 +0300 (IDT) Date: Wed, 9 Sep 2009 19:33:23 +0300 From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] sync halt state into env Message-ID: <20090909163323.GJ22885@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Was dropped somewhere during merge. Without this info cpus doesn't show cpu halted state. Signed-off-by: Gleb Natapov --- 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 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)