mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
[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:
1 parent
3cd179cf27
commit
d2ea22a405
1 file changed
+13
-4
@@ -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(®s);
|
||||
__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(®s);
|
||||
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;
|
||||
}
|
||||
|
||||