From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0CA7-0006fF-MT for qemu-devel@nongnu.org; Wed, 03 Jun 2015 13:09:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0CA6-00089Q-GT for qemu-devel@nongnu.org; Wed, 03 Jun 2015 13:09:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0CA6-00089E-Ag for qemu-devel@nongnu.org; Wed, 03 Jun 2015 13:09:06 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 17E1F344F75 for ; Wed, 3 Jun 2015 17:09:06 +0000 (UTC) From: Paolo Bonzini Date: Wed, 3 Jun 2015 19:08:31 +0200 Message-Id: <1433351328-23326-7-git-send-email-pbonzini@redhat.com> In-Reply-To: <1433351328-23326-1-git-send-email-pbonzini@redhat.com> References: <1433351328-23326-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2 06/23] target-i386: wake up processors that receive an SMI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lersek@redhat.com, kraxel@redhat.com, mst@redhat.com An SMI should definitely wake up a processor in halted state! This lets OVMF boot with SMM on multiprocessor systems, although it halts very soon after that with a "CpuIndex != BspIndex" assertion failure. Signed-off-by: Paolo Bonzini --- target-i386/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 3305e09..523d0cd 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -2941,7 +2941,9 @@ static bool x86_cpu_has_work(CPUState *cs) (cs->interrupt_request & (CPU_INTERRUPT_NMI | CPU_INTERRUPT_INIT | CPU_INTERRUPT_SIPI | - CPU_INTERRUPT_MCE)); + CPU_INTERRUPT_MCE)) || + ((cs->interrupt_request & CPU_INTERRUPT_SMI) && + !(env->hflags & HF_SMM_MASK)); } static Property x86_cpu_properties[] = { -- 2.4.1