]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86/mmu: Taking guest pa into consideration when calculate tdp level
authorXiaoyao Li <xiaoyao.li@intel.com>
Wed, 30 Oct 2024 19:00:38 +0000 (12:00 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Mar 2025 18:20:51 +0000 (14:20 -0400)
commit20d913729c116a43119de76d346e0d3da0dc856b
treeb7551bc558b4567b7b055d1b6a56419b3efd0671
parent488808e682e72bdb15a579d61f5b90ece92ba83c
KVM: x86/mmu: Taking guest pa into consideration when calculate tdp level

For TDX, the maxpa (CPUID.0x80000008.EAX[7:0]) is fixed as native and
the max_gpa (CPUID.0x80000008.EAX[23:16]) is configurable and used
to configure the EPT level and GPAW.

Use max_gpa to determine the TDP level.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h
arch/x86/kvm/mmu/mmu.c