linux/arch/x86/kvm/mmu
Paolo Bonzini 6b72d0578c KVM: x86: use again the flush argument of __link_shadow_page()
Except in the case of parentless nested-TDP pages, mmu_page_zap_pte()
clears the SPTE but leaves the invalid_list empty.  In this case, using
kvm_flush_remote_tlbs() as kvm_mmu_remote_flush_or_zap() does is overkill.
Avoid flushing the entirety of the remote TLBs unless the invalid_list
was populated: instead, use a more efficient gfn-targeting flush (if
available) and skip it altogether if the caller guarantees that a TLB
flush is not necessary.

Based-on: <20260503201029.106481-1-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20260503210917.121840-1-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2026-05-12 23:12:31 +02:00
..
mmu_internal.h KVM: x86/mmu: Move "dummy root" helpers to spte.h 2025-10-17 15:11:26 -07:00
mmu.c KVM: x86: use again the flush argument of __link_shadow_page() 2026-05-12 23:12:31 +02:00
mmutrace.h KVM: x86/mmu: Pretty print PK, SS, and SGX flags in MMU tracepoints 2025-09-23 09:17:32 -07:00
page_track.c KVM: x86/mmu: Do not enable page track for TD guest 2025-03-14 14:20:52 -04:00
page_track.h KVM: x86/mmu: Drop @slot param from exported/external page-track APIs 2023-08-31 14:08:18 -04:00
paging_tmpl.h KVM: x86: Use "checked" versions of get_user() and put_user() 2025-11-17 07:50:20 -08:00
spte.c x86/bugs: Use an x86 feature to track the MMIO Stale Data mitigation 2025-11-18 16:22:42 -08:00
spte.h mm: rename my_zero_pfn() to zero_pfn() 2026-04-05 13:53:01 -07:00
tdp_iter.c KVM: x86/mmu: Support GFN direct bits 2024-12-23 08:31:54 -05:00
tdp_iter.h KVM: x86/mmu: Don't force atomic update if only the Accessed bit is volatile 2025-02-14 07:16:45 -08:00
tdp_mmu.c KVM: x86/mmu: Don't zero-allocate page table used for splitting a hugepage 2026-03-03 12:16:27 -08:00
tdp_mmu.h KVM: x86/mmu: Rename kvm_tdp_mmu_zap_sp() to better indicate its purpose 2025-08-19 07:40:25 -07:00