Skip to content

Commit 5a989bb

Browse files
mzhang3579sean-jc
authored andcommitted
KVM: x86: Update the variable naming in kvm_x86_ops.sched_in()
Update the variable with name 'kvm' in kvm_x86_ops.sched_in() to 'vcpu' to avoid confusions. Variable naming in KVM has a clear convention that 'kvm' refers to pointer of type 'struct kvm *', while 'vcpu' refers to pointer of type 'struct kvm_vcpu *'. Fix this 9-year old naming issue for fun. Signed-off-by: Mingwei Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 3d30bfc commit 5a989bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ struct kvm_x86_ops {
17011701

17021702
void (*request_immediate_exit)(struct kvm_vcpu *vcpu);
17031703

1704-
void (*sched_in)(struct kvm_vcpu *kvm, int cpu);
1704+
void (*sched_in)(struct kvm_vcpu *vcpu, int cpu);
17051705

17061706
/*
17071707
* Size of the CPU's dirty log buffer, i.e. VMX's PML buffer. A zero

0 commit comments

Comments
 (0)