From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov 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> References: <1252830613-2185-1-git-send-email-gleb@redhat.com> Cc: kvm@vger.kernel.org To: avi@redhat.com Return-path: 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 In-Reply-To: <1252830613-2185-1-git-send-email-gleb@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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, -- 1.6.3.3