mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/traps: Use fatal_trap() for #UD and #GP
This renders the diagnostics in a more uniform way.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 705784e512)
This commit is contained in:
1 parent
c8b536ec18
commit
4deb5b83b6
1 file changed
+2
-4
@@ -1376,8 +1376,7 @@ void asmlinkage do_invalid_op(struct cpu_user_regs *regs)
|
||||
if ( likely(extable_fixup(regs, true)) )
|
||||
return;
|
||||
|
||||
show_execution_state(regs);
|
||||
panic("FATAL TRAP: vector = %d (invalid opcode)\n", X86_EXC_UD);
|
||||
fatal_trap(regs, false);
|
||||
}
|
||||
|
||||
void asmlinkage do_int3(struct cpu_user_regs *regs)
|
||||
@@ -1476,8 +1475,7 @@ void do_general_protection(struct cpu_user_regs *regs)
|
||||
return;
|
||||
|
||||
hardware_gp:
|
||||
show_execution_state(regs);
|
||||
panic("GENERAL PROTECTION FAULT\n[error_code=%04x]\n", regs->error_code);
|
||||
fatal_trap(regs, false);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PV
|
||||
|
||||