diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-26 12:28:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-09 15:34:50 -0800 |
commit | 25e8618619a5a46aae253e1cc68eeaa0d44d2f52 (patch) | |
tree | c401cbc7dc6288bbc7da2a9e840ac08c7b780f50 /arch/arm/mach-s3c64xx/dev-uart.c | |
parent | 7931825da8fd57ceb8bae86d3dbe555a506a7edd (diff) |
KVM: x86: fix root cause for missed hardware breakpoints
commit 70e4da7a8ff62f2775337b705f45c804bb450454 upstream.
Commit 172b2386ed16 ("KVM: x86: fix missed hardware breakpoints",
2016-02-10) worked around a case where the debug registers are not loaded
correctly on preemption and on the first entry to KVM_RUN.
However, Xiao Guangrong pointed out that the root cause must be that
KVM_DEBUGREG_BP_ENABLED is not being set correctly. This can indeed
happen due to the lazy debug exit mechanism, which does not call
kvm_update_dr7. Fix it by replacing the existing loop (more or less
equivalent to kvm_update_dr0123) with calls to all the kvm_update_dr*
functions.
Fixes: 172b2386ed16a9143d9a456aae5ec87275c61489
Reviewed-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-s3c64xx/dev-uart.c')
0 files changed, 0 insertions, 0 deletions