[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ca227500-9fe9-0600-065c-70e02916488f@redhat.com>
Date: Thu, 1 Apr 2021 12:41:00 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Sean Christopherson <seanjc@...gle.com>,
Ben Gardon <bgardon@...gle.com>
Cc: linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
Peter Xu <peterx@...hat.com>, Peter Shier <pshier@...gle.com>,
Peter Feiner <pfeiner@...gle.com>,
Junaid Shahid <junaids@...gle.com>,
Jim Mattson <jmattson@...gle.com>,
Yulei Zhang <yulei.kernel@...il.com>,
Wanpeng Li <kernellwp@...il.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Xiao Guangrong <xiaoguangrong.eric@...il.com>
Subject: Re: [PATCH 13/13] KVM: x86/mmu: Tear down roots in fast invalidation
thread
On 01/04/21 00:29, Sean Christopherson wrote:
>> + if (is_tdp_mmu_enabled(kvm)) {
>> + read_lock(&kvm->mmu_lock);
>> + kvm_tdp_mmu_zap_all_fast(kvm);
> Purely because it exists first, I think we should follow the legacy MMU's
> terminology, i.e. kvm_tdp_mmu_zap_obsolete_pages().
>
It's a bit different, obsolete pages in kvm_zap_obsolete_pages have an
old mmu_valid_gen. They are not invalid, so it is inaccurate to talk
about obsolete pages in the context of the TDP MMU. But I agree that
the function should be renamed.
Paolo
Powered by blists - more mailing lists