diff options
| author | 2026-09-16 16:33:11 +0200 | |
|---|---|---|
| committer | 2026-09-29 06:29:11 -0700 | |
| commit | 31adfe155db60a58b61e5b3d472cf85336ff3daf (patch) | |
| tree | c022e2e0d89c31ba0bf6016b64093f975e1a318e /scripts/Makefile.thinlto | |
| parent | KVM: x86/mmu: Report a memory fault exit when the fault handler EFAULTs (diff) | |
KVM: x86/mmu: Fix NX page unaccounting for TDP MMU pages
unaccount_nx_huge_page() unconditionally passes KVM_SHADOW_MMU to
untrack_possible_nx_huge_page(), which is incorrect, particularly on
the path from kvm_recover_nx_huge_pages(), which handles pages from
both MMUs.
Fix this by passing down the MMU type from the callers. Note that
__kvm_mmu_prepare_zap_page() is only used for shadow MMU pages.
Fixes: 6777885605e1 ("KVM: x86/mmu: Track possible NX huge pages separately for TDP vs. Shadow MMU")
Signed-off-by: Carlos López <clopez@suse.de>
Link: https://patch.msgid.link/20260916143310.1909993-2-clopez@suse.de
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
