From: Ian Campbell Subject: Re: [PATCH] xen/arm: Panic when we receive an unexpected trap Date: Wed, 18 Jun 2014 17:02:17 +0100 Message-ID: <1403107337.6568.110.camel@kazak.uk.xensource.com> References: <1403037868-18158-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WxIJa-0008Pk-Lz for xen-devel@lists.xenproject.org; Wed, 18 Jun 2014 16:02:22 +0000 In-Reply-To: <1403037868-18158-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, 2014-06-17 at 21:44 +0100, Julien Grall wrote: > The current implementation of do_unexpected_trap make Xen spin forever > on the current physical CPU. This may lead to stall guests VCPU and print > unhelpful message (RCU stall...). > > Usually when Xen receives an unexpected trap, it means that something goes > wrong either in the hypervisor or in the CPU. In this case we should > directly panic to also stop the other CPUs. > > Signed-off-by: Julien Grall Ack + applied. > --- > xen/arch/arm/traps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c > index ac3fc70..0abb6ff 100644 > --- a/xen/arch/arm/traps.c > +++ b/xen/arch/arm/traps.c > @@ -999,7 +999,7 @@ void do_unexpected_trap(const char *msg, struct cpu_user_regs *regs) > { > printk("CPU%d: Unexpected Trap: %s\n", smp_processor_id(), msg); > show_execution_state(regs); > - while(1); > + panic("CPU%d: Unexpected Trap: %s\n", smp_processor_id(), msg); > } > > typedef register_t (*arm_hypercall_fn_t)(