Re: [PATCH v3 6/8] KVM: x86: Use kvm_dr{6,7}_valid() to check DR{4,5,6,7} write values in emulator

From: Jim Mattson

Date: Mon Jun 15 2026 - 13:25:10 EST


On Fri, Jun 12, 2026 at 4:03 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
>
> Use kvm_dr{6,7}_valid() to validate the incoming DR{4,5,6,7} value in the
> emulator instead of open coding an equivalent check. In the unlikely event
> that the behavior of DR6/7 (and their aliases) changes in the future, using
> common helpers will hopefully make it less likely the emulator logic will
> be overlooked.
>
> No functional change intended.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> ---
Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>