diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 20f2516c98c77fb3fe3ac8fc765615a7c60531f3..6bfc8fe82877963a12bed2d1229dad1f275a4f47 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -9087,6 +9087,8 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu) set_debugreg(vcpu->arch.eff_db[3], 3); set_debugreg(vcpu->arch.dr6, 6); vcpu->arch.switch_db_regs &= ~KVM_DEBUGREG_RELOAD; + } else if (unlikely(hw_breakpoint_active())) { + set_debugreg(0, 7); } exit_fastpath = kvm_x86_ops.run(vcpu);