]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86/mmu: Move "dummy root" helpers to spte.h
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 00:59:49 +0000 (17:59 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 17 Oct 2025 22:11:26 +0000 (15:11 -0700)
commita10f5cc3ac9b05c764e87ae13de9a716ff519903
treede5aa8b56b22d69e39aec99526c3425af8af9bae
parenta8749281e4c63e582574ae4409be7641763e58ad
KVM: x86/mmu: Move "dummy root" helpers to spte.h

Move the helpers to get/query a dummy root from mmu_internal.h to spte.h
so that VMX can detect and handle dummy roots when constructing EPTPs.
This will allow using the root's role to build the EPTP instead of pulling
equivalent information out of the vCPU structure.

No functional change intended.

Link: https://lore.kernel.org/r/20250919005955.1366256-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu_internal.h
arch/x86/kvm/mmu/spte.h