Re: [PATCH v4 22/30] KVM: x86: Move misc "VALID MASK" defines from kvm_host.h => x86.c
From: Binbin Wu
Date: Tue Jun 16 2026 - 02:46:39 EST
On 6/13/2026 8:03 AM, Sean Christopherson wrote:
> Move a variety of "VALID MASK" defines, e.g. that capture which flags in
> a given ioctl are supported by KVM, from kvm_host.h to x86.c. 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.
>
> Reviewed-by: Yosry Ahmed <yosry@xxxxxxxxxx>
> Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Reviewed-by: Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx>