vmx:update DR6 on TRAP_debug VM exits.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2008-10-10 10:06:49 +01:00
1 parent a64e3fbcf1
commit 4f36452b63
1 file changed
+7
+7
View File
@@ -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;
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.