]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: DR0-DR3 are not clear on reset
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 2 Apr 2015 00:10:37 +0000 (03:10 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Apr 2015 08:47:03 +0000 (10:47 +0200)
commite3c361fedd90d138a08f02245f3b80ac8a22653a
tree183145db1f3add0737a21f2b8220e8ce8d03a345
parent9813837479a4f29d6a68a4efd3ac1cf497d3d15c
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 fb8dc41ac86e ("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