Re: [PATCH 13/13] KVM: x86/mmu: Tear down roots in fast invalidation thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux