WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH]smpboot.c: Don't boot cpu if apicid is BAD_APICID

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]smpboot.c: Don't boot cpu if apicid is BAD_APICID
From: "Natasha Jarymowycz" <natasha@xxxxxxxxxx>
Date: Mon, 16 May 2005 14:45:23 -0500
Delivery-date: Mon, 16 May 2005 19:44:59 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: natasha@xxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Opera M2/7.54 (Win32, build 3929)

Various mach-specific platforms return BAD_APICID from
cpu_present_to_apicid.  This check is needed or do_boot_cpu
will be called with an invalid APICID.

Signed-off-by: Natasha Jarymowycz <natasha@xxxxxxxxxx>

--- xen-unstable/xen/arch/x86/smpboot.c 2005-05-15 22:15:30.000000000 -0500
+++ xen-unstable.patched/xen/arch/x86/smpboot.c 2005-05-17 12:17:32.000000000 -0500
@@ -871,7 +871,7 @@
         /*
          * Don't even attempt to start the boot CPU!
          */
-        if (apicid == boot_cpu_apicid)
+        if ((apicid == boot_cpu_apicid) || (apicid == BAD_APICID))
             continue;

         /*


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH]smpboot.c: Don't boot cpu if apicid is BAD_APICID, Natasha Jarymowycz <=