summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorCarlos López <clopez@suse.de>2026-09-16 16:33:11 +0200
committerSean Christopherson <seanjc@google.com>2026-09-29 06:29:11 -0700
commit31adfe155db60a58b61e5b3d472cf85336ff3daf (patch)
treec022e2e0d89c31ba0bf6016b64093f975e1a318e /include/uapi/linux
parent64f1cf2884403895feed3c442c65e1cb785945b9 (diff)
downloadlinux-next-31adfe155db60a58b61e5b3d472cf85336ff3daf.tar.gz
linux-next-31adfe155db60a58b61e5b3d472cf85336ff3daf.zip
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 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions