From: Julien Grall Subject: [PATCH] xen/arm: traps: Print a message in debug build when a guest dabt is not handled Date: Thu, 28 May 2015 10:10:47 +0100 Message-ID: <1432804247-14013-1-git-send-email-julien.grall@citrix.com> 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 1YxtqY-0006GH-P0 for xen-devel@lists.xenproject.org; Thu, 28 May 2015 09:11:26 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Julien Grall , stefano.stabellini@citrix.com, tim@xen.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org This is useful for debugging low level kernel before the guest as setup the vector table. Note that the value of the IPA is only here for reference and may not always be valid if the error came from a stage 1 table translation walk. Signed-off-by: Julien Grall --- Rather than having a check only for UART, a more generic message would be more useful in debug build. --- xen/arch/arm/traps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 47d6cef..1dcc31f 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -2355,7 +2355,6 @@ static void do_trap_data_abort_guest(struct cpu_user_regs *regs, #else info.gva = READ_SYSREG64(FAR_EL2); #endif - if ( dabt.s1ptw ) info.gpa = READ_SYSREG(HPFAR_EL2); else @@ -2413,6 +2412,8 @@ static void do_trap_data_abort_guest(struct cpu_user_regs *regs, } bad_data_abort: + gdprintk(XENLOG_DEBUG, "HSR=0x%x pc=%#"PRIregister" gva=%#"PRIvaddr + " gpa=%#"PRIpaddr"\n", hsr.bits, regs->pc, info.gva, info.gpa); inject_dabt_exception(regs, info.gva, hsr.len); } -- 2.1.4