Re: [PATCH 5/9] KVM: x86: Move KVM_GUESTDBG_VALID_MASK from kvm_host.h => x86.c
From: Huang, Kai
Date: Thu Jun 25 2026 - 20:39:13 EST
On Thu, 2026-06-25 at 15:04 -0700, Sean Christopherson wrote:
> Move KVM_GUESTDBG_VALID_MASK into x86.c so that it's not globally visible.
> As explained by commit 462474588b19 ("KVM: x86: Move misc "VALID MASK"
> defines from kvm_host.h => x86.c"), which unintentionally missed GUESTDBG,
> the set of valid flags/bits is very much a KVM-internal detail, as the
> values from the hardcoded #defines are often captured and massaged by KVM's
> setup code, i.e. *directly* using the macros outside of KVM x86 would be
> actively dangerous.
>
> No functional change intended.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>