qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5390] Reset CPU on INIT IPI


From: Aurelien Jarno
Subject: [Qemu-devel] [5390] Reset CPU on INIT IPI
Date: Wed, 01 Oct 2008 22:01:29 +0000

Revision: 5390
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5390
Author:   aurel32
Date:     2008-10-01 22:01:28 +0000 (Wed, 01 Oct 2008)

Log Message:
-----------
Reset CPU on INIT IPI

INIT IPI should reset CPU. Also non boot CPU should be halted. It will
be un-halted by SIPI.

Signed-off-by: Gleb Natapov <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>

Modified Paths:
--------------
    trunk/hw/apic.c

Modified: trunk/hw/apic.c
===================================================================
--- trunk/hw/apic.c     2008-10-01 21:46:58 UTC (rev 5389)
+++ trunk/hw/apic.c     2008-10-01 22:01:28 UTC (rev 5390)
@@ -458,6 +458,11 @@
     s->initial_count = 0;
     s->initial_count_load_time = 0;
     s->next_time = 0;
+
+    cpu_reset(s->cpu_env);
+
+    if (!(s->apicbase & MSR_IA32_APICBASE_BSP))
+        s->cpu_env->halted = 1;
 }
 
 /* send a SIPI message to the CPU to start it */






reply via email to

[Prev in Thread] Current Thread [Next in Thread]