KVM: x86: DR0-DR3 are not clear on reset
commitae561edeb421fbc24f97df7af8607c14009c16b2
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 2 Apr 2015 00:10:37 +0000 (2 03:10 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Apr 2015 08:47:03 +0000 (8 10:47 +0200)
tree183145db1f3add0737a21f2b8220e8ce8d03a345
parent58d269d8cccc53643f1a0900cfc0940e85ec9691
KVM: x86: DR0-DR3 are not clear on reset

DR0-DR3 are not cleared as they should during reset and when they are set from
userspace.  It appears to be caused by c77fb5fe6f03 ("KVM: x86: Allow the guest
to run with dirty debug registers").

Force their reload on these situations.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Message-Id: <1427933438-12782-4-git-send-email-namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c