mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
x86/vmx: Don't clobber %dr6 while debugging state is lazy
c/s4f36452b63introduced 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> master commit:3cdac28056master date: 2018-07-19 14:06:48 +0100
This commit is contained in:
1 parent
f049cd67a9
commit
5566272d5a
1 file changed
+1
@@ -3585,6 +3585,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs)
|
||||
*/
|
||||
__vmread(EXIT_QUALIFICATION, &exit_qualification);
|
||||
HVMTRACE_1D(TRAP_DEBUG, exit_qualification);
|
||||
__restore_debug_registers(v);
|
||||
write_debugreg(6, exit_qualification | DR_STATUS_RESERVED_ONE);
|
||||
if ( !v->domain->debugger_attached )
|
||||
{
|
||||
|
||||