diff options
author | Mingwei Zhang <mizhang@google.com> | 2023-10-17 23:26:10 +0000 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-10-17 16:40:01 -0700 |
commit | 5a989bbead4cc9cd67c3911226ad857d293643d8 (patch) | |
tree | f5ec1462e5908ea15931f80225c9f825c7725986 /arch/x86 | |
parent | 3d30bfcbdc268b41a7d9253a9cb3082281223b19 (diff) | |
download | linux-stable-5a989bbead4cc9cd67c3911226ad857d293643d8.tar.gz linux-stable-5a989bbead4cc9cd67c3911226ad857d293643d8.tar.bz2 linux-stable-5a989bbead4cc9cd67c3911226ad857d293643d8.zip |
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 <mizhang@google.com>
Link: https://lore.kernel.org/r/20231017232610.4008690-1-mizhang@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index da497cc56e84..63e08b17a7b7 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1701,7 +1701,7 @@ struct kvm_x86_ops { void (*request_immediate_exit)(struct kvm_vcpu *vcpu); - void (*sched_in)(struct kvm_vcpu *kvm, int cpu); + void (*sched_in)(struct kvm_vcpu *vcpu, int cpu); /* * Size of the CPU's dirty log buffer, i.e. VMX's PML buffer. A zero |