[HVM][VMX] Propagate debug exception to guest if no external debugger is enabled.

Signed-off-by: George Dunlap <dunlapg@umich.edu>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-06-27 09:33:35 +01:00
1 parent 3cd179cf27
commit d2ea22a405
1 file changed
+13 -4
+13 -4
View File
@@ -2080,10 +2080,19 @@ asmlinkage void vmx_vmexit_handler(struct cpu_user_regs regs)
{
void store_cpu_user_regs(struct cpu_user_regs *regs);
store_cpu_user_regs(&regs);
__vm_clear_bit(GUEST_PENDING_DBG_EXCEPTIONS, PENDING_DEBUG_EXC_BS);
domain_pause_for_debugger();
if ( test_bit(_DOMF_debugging, &v->domain->domain_flags) )
{
store_cpu_user_regs(&regs);
domain_pause_for_debugger();
__vm_clear_bit(GUEST_PENDING_DBG_EXCEPTIONS,
PENDING_DEBUG_EXC_BS);
}
else
{
vmx_reflect_exception(v);
__vm_clear_bit(GUEST_PENDING_DBG_EXCEPTIONS,
PENDING_DEBUG_EXC_BS);
}
break;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.