]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
xen/arm: traps: Don't panic when receiving an unknown debug trap
authorJulien Grall <jgrall@amazon.com>
Thu, 5 Nov 2020 22:31:06 +0000 (22:31 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 6 Nov 2020 02:00:10 +0000 (18:00 -0800)
Even if debug trap are only meant for debugging purpose, it is quite
harsh to crash Xen if one of the trap sent by the guest is not handled.

So switch from a panic() to a printk().

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c

index 8f40d0e0b6b1a2c3856fd8b23d6201716cfce533..a36f145e673926dc4990db95a83bd4311869dd39 100644 (file)
@@ -1410,7 +1410,7 @@ static void do_debug_trap(struct cpu_user_regs *regs, unsigned int code)
         show_execution_state(regs);
         break;
     default:
-        panic("DOM%d: Unhandled debug trap %#x\n", domid, code);
+        printk("DOM%d: Unhandled debug trap %#x\n", domid, code);
         break;
     }
 }