qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-i386: wake up processors that receive an SMI
@ 2015-05-19 11:47 Paolo Bonzini
  2015-05-19 11:57 ` Laszlo Ersek
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2015-05-19 11:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: lersek

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 <pbonzini@redhat.com>
---
 target-i386/cpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 7b6f9e4..4c4496b 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -2982,6 +2982,7 @@ static bool x86_cpu_has_work(CPUState *cs)
     return ((cs->interrupt_request & CPU_INTERRUPT_HARD) &&
             (env->eflags & IF_MASK)) ||
            (cs->interrupt_request & (CPU_INTERRUPT_NMI |
+                                     CPU_INTERRUPT_SMI |
                                      CPU_INTERRUPT_INIT |
                                      CPU_INTERRUPT_SIPI |
                                      CPU_INTERRUPT_MCE));
-- 
2.4.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] target-i386: wake up processors that receive an SMI
  2015-05-19 11:47 [Qemu-devel] [PATCH] target-i386: wake up processors that receive an SMI Paolo Bonzini
@ 2015-05-19 11:57 ` Laszlo Ersek
  0 siblings, 0 replies; 2+ messages in thread
From: Laszlo Ersek @ 2015-05-19 11:57 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

On 05/19/15 13:47, Paolo Bonzini wrote:
> 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 <pbonzini@redhat.com>
> ---
>  target-i386/cpu.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/target-i386/cpu.c b/target-i386/cpu.c
> index 7b6f9e4..4c4496b 100644
> --- a/target-i386/cpu.c
> +++ b/target-i386/cpu.c
> @@ -2982,6 +2982,7 @@ static bool x86_cpu_has_work(CPUState *cs)
>      return ((cs->interrupt_request & CPU_INTERRUPT_HARD) &&
>              (env->eflags & IF_MASK)) ||
>             (cs->interrupt_request & (CPU_INTERRUPT_NMI |
> +                                     CPU_INTERRUPT_SMI |
>                                       CPU_INTERRUPT_INIT |
>                                       CPU_INTERRUPT_SIPI |
>                                       CPU_INTERRUPT_MCE));
> 

Great, that's something I should look into then. I'll apply this and
then see what's up with the assertion failure.

Thanks!
Laszlo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-19 11:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 11:47 [Qemu-devel] [PATCH] target-i386: wake up processors that receive an SMI Paolo Bonzini
2015-05-19 11:57 ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).