x86/vmx: Don't clobber %dr6 while debugging state is lazy
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 28 May 2018 14:19:05 +0000 (14:19 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Jul 2018 13:06:48 +0000 (14:06 +0100)
commit3cdac2805692c7accde2f405d81cc0be799aee48
treee1cc3c2f1cf413119746bbe9b6dbe084c4d6292d
parent8d783cb20c35ea3f763934484fd11d1ed7ab1e40
x86/vmx: Don't clobber %dr6 while debugging state is lazy

c/s 4f36452b63 introduced a write to %dr6 in the #DB intercept case, but the
guests debug registers may be lazy at this point, at which point the guests
later attempt to read %dr6 will discard this value and use the older stale
value.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c