From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: stopping APs during shutdown/reboot Date: Wed, 11 Apr 2007 08:42:26 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Cihula, Joseph" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 11/4/07 08:37, "Cihula, Joseph" 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