Re: [PATCH 2/9] KVM: x86/mmu: Annotate tdp_enabled as being read-mostly
From: Huang, Kai
Date: Thu Jun 25 2026 - 20:14:21 EST
On Thu, 2026-06-25 at 15:04 -0700, Sean Christopherson wrote:
> Tag tdp_enabled with __read_mostly as the variable is only ever written
> during vendor module load, same as all the other global MMU variables that
> are handled by kvm_configure_mmu().
>
> Opportunistically annotate the tdp_mmu_enabled and eager_page_split
> declarations with __read_mostly, to match their definitions. The compiler
> will warn if there are conflicting annotations, i.e. there's minimal risk
> of the declaration annotation becoming stale.
>
> No functional change intended.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
>
Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>