Commit e25c2332 authored by James Houghton's avatar James Houghton Committed by Sean Christopherson
Browse files

KVM: x86/mmu: Skip shadow MMU test_young if TDP MMU reports page as young



Reorder the processing of the TDP MMU versus the shadow MMU when aging
SPTEs, and skip the shadow MMU entirely in the test-only case if the TDP
MMU reports that the page is young, i.e. completely avoid taking mmu_lock
if the TDP MMU SPTE is young.  Swap the order for the test-and-age helper
as well for consistency.

Signed-off-by: default avatarJames Houghton <jthoughton@google.com>
Acked-by: default avatarYu Zhao <yuzhao@google.com>
Link: https://lore.kernel.org/r/20250204004038.1680123-7-jthoughton@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent b146a9b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment