From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH ARM v5 17/20] mini-os: headers for ARM Date: Fri, 27 Jun 2014 14:11:07 +0100 Message-ID: <1403874667.3169.31.camel@kazak.uk.xensource.com> References: <1403782117-15125-1-git-send-email-talex5@gmail.com> <1403782117-15125-18-git-send-email-talex5@gmail.com> <53AC499C.6090004@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X0VwM-0002Zi-2g for xen-devel@lists.xenproject.org; Fri, 27 Jun 2014 13:11:42 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Thomas Leonard Cc: David Scott , Anil Madhavapeddy , Julien Grall , Samuel Thibault , xen-devel@lists.xenproject.org, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2014-06-27 at 14:02 +0100, Thomas Leonard wrote: > >> +#define BUG() while(1){} > > > > It looks odd to use onely while (1). Shouldn't you call do_exit as x86 does? > > Note that patch #20 changes this to dump the registers and stack. > > [ also, exiting on BUG is annoying because you may lose the console > output if the VM dies before xl attaches to it. ] That's what on_crash=preserve and xenconsoled's logging capabilities are for. I expect SCHEDOP_crash is probably better than exiting though. Ian.