Skip to content

Commit 4d141e4

Browse files
Gao Shiyuansean-jc
authored andcommitted
KVM: VMX: Fix comment of handle_vmx_instruction()
Fix a goof in handle_vmx_instruction()'s comment where it references the non-existent nested_vmx_setup(); the function that overwrites the exit handlers is nested_vmx_hardware_setup(). Note, this isn't a case of a stale comment, e.g. due to the function being renamed. The comment has always been wrong. Fixes: e4027cf ("KVM: nVMX: Set callbacks for nested functions during hardware setup") Signed-off-by: Gao Shiyuan <gaoshiyuan@baidu.com> Link: https://lore.kernel.org/r/20250103153814.73903-1-gaoshiyuan@baidu.com [sean: massage changelog] Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent b5fd068 commit 4d141e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6050,7 +6050,7 @@ static int handle_preemption_timer(struct kvm_vcpu *vcpu)
60506050

60516051
/*
60526052
* When nested=0, all VMX instruction VM Exits filter here. The handlers
6053-
* are overwritten by nested_vmx_setup() when nested=1.
6053+
* are overwritten by nested_vmx_hardware_setup() when nested=1.
60546054
*/
60556055
static int handle_vmx_instruction(struct kvm_vcpu *vcpu)
60566056
{

0 commit comments

Comments
 (0)