]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86/tdp_mmu: Take root in tdp_mmu_for_each_pte()
authorIsaku Yamahata <isaku.yamahata@intel.com>
Thu, 18 Jul 2024 21:12:23 +0000 (14:12 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Dec 2024 13:31:54 +0000 (08:31 -0500)
commit00d98dd4a855443b69cba050a0092dc958baae53
tree251f0627afb8b006e0e8d6a031304b5a1f422001
parentde86ef7bf50f181b29dcc1046e903ff1ca7eeb9f
KVM: x86/tdp_mmu: Take root in tdp_mmu_for_each_pte()

Take the root as an argument of tdp_mmu_for_each_pte() instead of looking
it up in the mmu. With no other purpose of passing the mmu, drop it.

Future changes will want to change which root is used based on the context
of the MMU operation. So change the callers to pass in the root currently
used, mmu->root.hpa in a preparatory patch to make the later one smaller
and easier to review.

Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Message-ID: <20240718211230.1492011-12-rick.p.edgecombe@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c