Re: [PATCH v2 4/6] KVM: x86/mmu: Track the number of TDP MMU pages, but not the actual pages

Sean Christopherson
2022-07-25T23:27:29Z

On Mon, Jul 25, 2022, David Matlack wrote:
> > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
> > index 246b69262b93..5c269b2556d6 100644
> > --- a/arch/x86/include/asm/kvm_host.h
> > +++ b/arch/x86/include/asm/kvm_host.h
> > @@ -1271,6 +1271,9 @@ struct kvm_arch {
> > */
> > bool tdp_mmu_enabled;
> >
> > + /* The number of TDP MMU pages across all roots. */
> > + atomic64_t tdp_mmu_pages;
>
> This is the number of non-root TDP MMU pages, right?

Yes.