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

Re: [Xen-devel] stopping APs during shutdown/reboot

To: "Cihula, Joseph" <joseph.cihula@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] stopping APs during shutdown/reboot
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Wed, 11 Apr 2007 08:42:26 +0100
Delivery-date: Wed, 11 Apr 2007 00:41:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <AEC554657A662A4880670EA30CB9488D0197F387@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acd8DD95WrzbOHQpQH2y9vGywbxRhQAALNvt
Thread-topic: [Xen-devel] stopping APs during shutdown/reboot
User-agent: Microsoft-Entourage/11.2.5.060620


On 11/4/07 08:37, "Cihula, Joseph" <joseph.cihula@xxxxxxxxx> wrote:

> machine_halt(), in xen/arch/x86/shutdown.c, uses
> smp_call_function(__machine_halt, NULL, 1, 0) to stop all APs.
> __machine_halt() is just an infinite for loop of __asm__ __volatile__ (
> "hlt" );
> 
> machine_restart(), also in shudown.c, uses smp_send_stop() which ends up
> doing the same thing with a few additional cleanup procedures.

Yes, shutdown is a fricking mess, especially after the kexec changes.
There's a fair bit of scope for cleanup.

 -- Keir


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

<Prev in Thread] Current Thread [Next in Thread>