]> xenbits.xensource.com Git - xen.git/commit
x86/pv: Fix the handing of writes to %dr7
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Apr 2018 14:47:39 +0000 (16:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Apr 2018 14:47:39 +0000 (16:47 +0200)
commita753be1b4c20f1be96c97dce5dac33d6bd304c13
tree8c14c7f28f00e602b50efb8b11b9cc99902feb9b
parent8f9846f791d2f248651f5fd56724b4c3fabd9d9b
x86/pv: Fix the handing of writes to %dr7

c/s 65e35549 "x86/PV: support data breakpoint extension registers"
accidentally broke the handing of writes.  The call to activate_debugregs()
doesn't write %dr7 as v->arch.debugreg[7] hasn't been updated yet, and the
break skips the intended write to %dr7.

Remove the break, causing execution to hit the write_debugreg(7, value); in
context at the bottom of the hunk, which in turn causes hardware to be updated
appropriately.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: adf8feba1afa040f3a84a82953e18af02060884a
master date: 2018-03-29 15:12:21 +0100
xen/arch/x86/traps.c