KVM: x86: Clear DR6[0:3] on #DB during handle_dr
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 2 Nov 2014 09:54:44 +0000 (11:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Nov 2014 14:44:03 +0000 (15:44 +0100)
commit7305eb5d8cf147ce4178e723c95de15e2f001429
tree030acd2f20dfaf9bd080332ffc634d039cef203e
parent6d2a0526b09e551d0f395cfb63e7cb965db825af
KVM: x86: Clear DR6[0:3] on #DB during handle_dr

DR6[0:3] (previous breakpoint indications) are cleared when #DB is injected
during handle_exception, just as real hardware does.  Similarily, handle_dr
should clear DR6[0:3].

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c