linux/arch/x86/kvm/mmu
Sean Christopherson 81d480fdf8 KVM: x86/mmu: Wrap sanity check on number of TDP MMU pages with KVM_PROVE_MMU
Wrap the TDP MMU page counter in CONFIG_KVM_PROVE_MMU so that the sanity
check is omitted from production builds, and more importantly to remove
the atomic accesses to account pages.  A one-off memory leak in production
is relatively uninteresting, and a WARN_ON won't help mitigate a systemic
issue; it's as much about helping triage memory leaks as it is about
detecting them in the first place, and doesn't magically stop the leaks.
I.e. production environments will be quite sad if a severe KVM bug escapes,
regardless of whether or not KVM WARNs.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20250315023448.2358456-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-04-04 07:07:40 -04:00
..
mmu.c KVM x86/mmu changes for 6.15 2025-03-19 09:04:33 -04:00
mmu_internal.h Merge branch 'kvm-mirror-page-tables' into HEAD 2025-01-20 07:15:58 -05:00
mmutrace.h KVM: x86/mmu: Trigger unprotect logic only on write-protection page faults 2024-09-09 20:16:19 -07:00
page_track.c KVM: Use vfree for memory allocated by vcalloc()/__vcalloc() 2024-04-09 12:18:38 -07: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: nVMX: Decouple EPT RWX bits from EPT Violation protection bits 2025-02-28 09:14:05 -08:00
spte.c KVM: x86/mmu: Always update A/D-disabled SPTEs atomically 2025-02-14 07:16:51 -08:00
spte.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_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: Wrap sanity check on number of TDP MMU pages with KVM_PROVE_MMU 2025-04-04 07:07:40 -04:00
tdp_mmu.h KVM: x86/tdp_mmu: Take root types for kvm_tdp_mmu_invalidate_all_roots() 2024-12-23 08:31:54 -05:00