On Wed, Sep 21, 2022 at 10:35:45AM -0700, David Matlack <dmatlack@xxxxxxxxxx> wrote: > Stop calling make_mmu_pages_available() when handling TDP MMU faults. > The TDP MMU does not participate in the "available MMU pages" tracking > and limiting so calling this function is unnecessary work when handling > TDP MMU faults. > > Signed-off-by: David Matlack <dmatlack@xxxxxxxxxx> > --- > arch/x86/kvm/mmu/mmu.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c > index b36f351138f7..4ad70fa371df 100644 > --- a/arch/x86/kvm/mmu/mmu.c > +++ b/arch/x86/kvm/mmu/mmu.c > @@ -4343,10 +4343,6 @@ static int kvm_tdp_mmu_page_fault(struct kvm_vcpu *vcpu, > if (is_page_fault_stale(vcpu, fault)) > goto out_unlock; > > - r = make_mmu_pages_available(vcpu); > - if (r) > - goto out_unlock; > - > r = kvm_tdp_mmu_map(vcpu, fault); > > out_unlock: > -- > 2.37.3.998.g577e59143f-goog > Reviewed-by: Isaku Yamahata <isaku.yamahata@xxxxxxxxx> -- Isaku Yamahata <isaku.yamahata@xxxxxxxxx>