]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/x86/kvm/x86.c
KVM: X86: Set host DR6 only on VMX and for KVM_DEBUGREG_WONT_EXIT
[mirror_ubuntu-jammy-kernel.git] / arch / x86 / kvm / x86.c
index eca5f005a7fc5dab61803497c33b0c63613cba1e..15ac8645e53248de0187c0c3a6eb1a83accdc338 100644 (file)
@@ -9602,7 +9602,6 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
                set_debugreg(vcpu->arch.eff_db[1], 1);
                set_debugreg(vcpu->arch.eff_db[2], 2);
                set_debugreg(vcpu->arch.eff_db[3], 3);
-               set_debugreg(vcpu->arch.dr6, 6);
        } else if (unlikely(hw_breakpoint_active())) {
                set_debugreg(0, 7);
        }