Re: [PATCH v3] KVM: x86/mmu: Fix NX page unaccounting for TDP MMU pages
From: Sean Christopherson
Date: Fri Oct 02 2026 - 17:09:12 EST
On Wed, 16 Sep 2026 16:33:11 +0200, Carlos López wrote:
> 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.
>
> [...]
Applied to kvm-x86 mmu, thanks!
[1/1] KVM: x86/mmu: Fix NX page unaccounting for TDP MMU pages
https://github.com/kvm-x86/linux/commit/31adfe155db6
--
https://github.com/kvm-x86/linux/tree/next