From: Jan Kiszka Date: Sat, 4 Jan 2014 17:47:15 +0000 (+0100) Subject: KVM: x86: Sync DR7 on KVM_SET_DEBUGREGS X-Git-Tag: v3.14-rc1~127^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9926c9fdbdd54bb229fe6fdbd15ca3af2b8425ae;p=profile%2Fivi%2Fkernel-x86-ivi.git KVM: x86: Sync DR7 on KVM_SET_DEBUGREGS Whenever we change arch.dr7, we also have to call kvm_update_dr7. In case guest debugging is off, this will synchronize the new state into hardware. Signed-off-by: Jan Kiszka Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 0b3fd80..59907c9 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2976,6 +2976,7 @@ static int kvm_vcpu_ioctl_x86_set_debugregs(struct kvm_vcpu *vcpu, memcpy(vcpu->arch.db, dbgregs->db, sizeof(vcpu->arch.db)); vcpu->arch.dr6 = dbgregs->dr6; vcpu->arch.dr7 = dbgregs->dr7; + kvm_update_dr7(vcpu); return 0; }