From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0tN5-0003hs-EJ for qemu-devel@nongnu.org; Fri, 05 Jun 2015 11:17:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0tN4-0000DY-HY for qemu-devel@nongnu.org; Fri, 05 Jun 2015 11:17:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0tN4-0000Cq-Ch for qemu-devel@nongnu.org; Fri, 05 Jun 2015 11:17:22 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 1CF293663C0 for ; Fri, 5 Jun 2015 15:17:22 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-29.ams2.redhat.com [10.36.112.29]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t55FG4kt012808 for ; Fri, 5 Jun 2015 11:17:20 -0400 From: Paolo Bonzini Date: Fri, 5 Jun 2015 17:15:44 +0200 Message-Id: <1433517363-32335-44-git-send-email-pbonzini@redhat.com> In-Reply-To: <1433517363-32335-1-git-send-email-pbonzini@redhat.com> References: <1433517363-32335-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 43/62] 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 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 99ad551..0faca03 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -3063,7 +3063,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