[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.2-testing] vmx:update DR6 on TRAP_debug VM exits.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1224178037 -3600
# Node ID 65479fae664911f8435485daf0eb91908e39dd67
# Parent  988ca65bb09f2736661b3e26d2821b605974e59a
vmx:update DR6 on TRAP_debug VM exits.

Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
xen-unstable changeset:   18592:583e45983aaa
xen-unstable date:        Fri Oct 10 10:06:49 2008 +0100
---
 xen/arch/x86/hvm/vmx/vmx.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r 988ca65bb09f -r 65479fae6649 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c        Thu Oct 16 18:26:50 2008 +0100
+++ b/xen/arch/x86/hvm/vmx/vmx.c        Thu Oct 16 18:27:17 2008 +0100
@@ -2811,6 +2811,13 @@ asmlinkage void vmx_vmexit_handler(struc
         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;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.