mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
vmx:update DR6 on TRAP_debug VM exits.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
This commit is contained in:
1 parent
a64e3fbcf1
commit
4f36452b63
1 file changed
+7
@@ -2109,6 +2109,13 @@ asmlinkage void vmx_vmexit_handler(struct cpu_user_regs *regs)
|
||||
switch ( vector )
|
||||
{
|
||||
case TRAP_debug:
|
||||
/*
|
||||
* Updates DR6 where debugger can peek (See 3B 23.2.1,
|
||||
* Table 23-1, "Exit Qualification for Debug Exceptions").
|
||||
*/
|
||||
exit_qualification = __vmread(EXIT_QUALIFICATION);
|
||||
write_debugreg(6, exit_qualification | 0xffff0ff0);
|
||||
/* fall through */
|
||||
case TRAP_int3:
|
||||
if ( !v->domain->debugger_attached )
|
||||
goto exit_and_crash;
|
||||
|
||||