qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5390] Reset CPU on INIT IPI
@ 2008-10-01 22:01 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2008-10-01 22:01 UTC (permalink / raw)
  To: qemu-devel

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 <gleb@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-01 22:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-01 22:01 [Qemu-devel] [5390] Reset CPU on INIT IPI Aurelien Jarno

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).