From patchwork Sun Sep 13 08:30:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 47134 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 n8D8USZm018114 for ; Sun, 13 Sep 2009 08:30:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751547AbZIMIaN (ORCPT ); Sun, 13 Sep 2009 04:30:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751393AbZIMIaN (ORCPT ); Sun, 13 Sep 2009 04:30:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11193 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbZIMIaL (ORCPT ); Sun, 13 Sep 2009 04:30:11 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8D8UE0e006059 for ; Sun, 13 Sep 2009 04:30:15 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8D8UD5b001145; Sun, 13 Sep 2009 04:30:14 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 277CA18D46A; Sun, 13 Sep 2009 11:30:13 +0300 (IDT) From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH 4/4] Make cpu runnable after sipi Date: Sun, 13 Sep 2009 11:30:13 +0300 Message-Id: <1252830613-2185-4-git-send-email-gleb@redhat.com> In-Reply-To: <1252830613-2185-1-git-send-email-gleb@redhat.com> References: <1252830613-2185-1-git-send-email-gleb@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Gleb Natapov --- hw/apic.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index 11d4759..ac5e7ba 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -534,6 +534,9 @@ void apic_sipi(CPUState *env) env->segs[R_CS].limit, env->segs[R_CS].flags); env->halted = 0; s->wait_for_sipi = 0; +#ifdef KVM_CAP_MP_STATE + env->mp_state = KVM_MP_STATE_RUNNABLE; +#endif } static void apic_deliver(APICState *s, uint8_t dest, uint8_t dest_mode,