projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
775bc09
)
KVM: VMX: Rename vmx_get_max_tdp_level() to vmx_get_max_ept_level()
author
Shiyuan Gao
<gaoshiyuan@baidu.com>
Thu, 10 Aug 2023 11:38:53 +0000
(19:38 +0800)
committer
Sean Christopherson
<seanjc@google.com>
Thu, 17 Aug 2023 18:34:04 +0000
(11:34 -0700)
In VMX, ept_level looks better than tdp_level and is consistent with
SVM's get_npt_level().
Signed-off-by: Shiyuan Gao <gaoshiyuan@baidu.com>
Link:
https://lore.kernel.org/r/20230810113853.98114-1-gaoshiyuan@baidu.com
[sean: massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx/vmx.c
b/arch/x86/kvm/vmx/vmx.c
index
3f86882
..
f848f43
100644
(file)
--- a/
arch/x86/kvm/vmx/vmx.c
+++ b/
arch/x86/kvm/vmx/vmx.c
@@
-3315,7
+3315,7
@@
void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
vmx->emulation_required = vmx_emulation_required(vcpu);
}
-static int vmx_get_max_
tdp
_level(void)
+static int vmx_get_max_
ept
_level(void)
{
if (cpu_has_vmx_ept_5levels())
return 5;
@@
-8498,7
+8498,7
@@
static __init int hardware_setup(void)
*/
vmx_setup_me_spte_mask();
- kvm_configure_mmu(enable_ept, 0, vmx_get_max_
tdp
_level(),
+ kvm_configure_mmu(enable_ept, 0, vmx_get_max_
ept
_level(),
ept_caps_to_lpage_level(vmx_capability.ept));
/*