]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
x86/HVM: don't inject #DB with error code
authorJan Beulich <jbeulich@suse.com>
Thu, 12 Nov 2015 15:59:18 +0000 (16:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 12 Nov 2015 15:59:18 +0000 (16:59 +0100)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper@citrix.com>
xen/arch/x86/hvm/hvm.c

index 4490e9de3fb5f67c13d3e1618863cf4b20397d11..2074a4129439c7d622ce0d75fbe5ec0046bf560a 100644 (file)
@@ -4132,7 +4132,7 @@ void hvm_task_switch(
         goto out;
 
     if ( (tss.trace & 1) && !exn_raised )
-        hvm_inject_hw_exception(TRAP_debug, tss_sel & 0xfff8);
+        hvm_inject_hw_exception(TRAP_debug, HVM_DELIVER_NO_ERROR_CODE);
 
     tr.attr.fields.type = 0xb; /* busy 32-bit tss */
     hvm_set_segment_register(v, x86_seg_tr, &tr);