]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: VMX: Fix DR6 update on #DB exception
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 4 Jan 2014 17:47:17 +0000 (18:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 Jan 2014 09:22:12 +0000 (10:22 +0100)
commit8246bf52c75aa9b9b336a84f31ed2248754d0f71
tree099477dbaefe4a61c5c117097b54cf922acdd23d
parent73aaf249ee2287b4686ff079dcbdbbb658156e64
KVM: VMX: Fix DR6 update on #DB exception

According to the SDM, only bits 0-3 of DR6 "may" be cleared by "certain"
debug exception. So do update them on #DB exception in KVM, but leave
the rest alone, only setting BD and BS in addition to already set bits
in DR6. This also aligns us with kvm_vcpu_check_singlestep.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c