aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/debugger.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-03-28 18:47:17 +0100
committerKeir Fraser <keir@xensource.com>2007-03-28 18:47:17 +0100
commit228c4fa338f246bfb9a875fead26afad5777d249 (patch)
tree1ab2b14dcaf123c6bdb2dc7c751c83302627e5f9 /xen/include/asm-x86/debugger.h
parent08710a981672b36e5b7dfc7bf759c1e51c1b63c0 (diff)
downloadxen-228c4fa338f246bfb9a875fead26afad5777d249.tar.gz
xen-228c4fa338f246bfb9a875fead26afad5777d249.tar.bz2
xen-228c4fa338f246bfb9a875fead26afad5777d249.zip
hvm: Clean up handling of exception intercepts.
Only intercept #DB/#BP if a debugger is attached. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/debugger.h')
-rw-r--r--xen/include/asm-x86/debugger.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/include/asm-x86/debugger.h b/xen/include/asm-x86/debugger.h
index b5256523e9..a1b83621f7 100644
--- a/xen/include/asm-x86/debugger.h
+++ b/xen/include/asm-x86/debugger.h
@@ -65,8 +65,7 @@ static inline int debugger_trap_entry(
{
struct vcpu *v = current;
- if ( guest_kernel_mode(v, regs) &&
- test_bit(_DOMF_debugging, &v->domain->domain_flags) &&
+ if ( guest_kernel_mode(v, regs) && v->domain->debugger_attached &&
((vector == TRAP_int3) || (vector == TRAP_debug)) )
{
domain_pause_for_debugger();