xen/x86-64: fix breakpoints and hardware watchpoints
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 30 Mar 2009 02:56:29 +0000 (19:56 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 8 May 2009 22:51:03 +0000 (15:51 -0700)
commit6cac5a924668a56c7ccefc345805f1fe0536a90e
tree0e15fe317a21ac40244cbf38cdeaa36f4c9837fd
parent6b2e8523df148c15ea5abf13075026fb8bdb3f86
xen/x86-64: fix breakpoints and hardware watchpoints

Native x86-64 uses the IST mechanism to run int3 and debug traps on
an alternative stack.  Xen does not do this, and so the frames were
being misinterpreted by the ptrace code.  This change special-cases
these two exceptions by using Xen variants which run on the normal
kernel stack properly.

Impact: avoid crash or bad data when IST trap is invoked under Xen
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/include/asm/traps.h
arch/x86/kernel/entry_64.S
arch/x86/xen/enlighten.c