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

KVM: x86/mmu: Only check gfn age in shadow MMU if indirect_shadow_pages > 0



When aging SPTEs and the TDP MMU is enabled, process the shadow MMU if and
only if the VM has at least one shadow page, as opposed to checking if the
VM has rmaps.  Checking for rmaps will effectively yield a false positive
if the VM ran nested TDP VMs in the past, but is not currently doing so.

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-8-jthoughton@google.com


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