KVM: update code comment in struct kvm_vcpu
PATCH 1/1 KVM: update code comment in struct kvm_vcpu
Commit c5b077549136 ("KVM: Convert the kvm->vcpus array to a xarray") changed kvm->vcpus array to a xarray, so update the code comment of kvm_vcpu->vcpu_idx accordingly.
Signed-off-by Wang Yong <[email protected]>
--- include/linux/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/kvm_host.h +1 -1
@@ -324,7 +324,7 @@ struct kvm_vcpu {#endif int cpu;int vcpu_id;/* id given by userspace at creation */ -int vcpu_idx;/* index in kvm->vcpus array */ +int vcpu_idx;/* index in kvm->vcpu_array */ int ____srcu_idx;/* Don't use this directly. You've been warned. */ #ifdef CONFIG_PROVE_RCU int srcu_depth;
Signature · 1 line
2.25.1
Quoted 5 lines · Wang Yong
Commit
c5b077549136("KVM: Convert thekvm->vcpusarray to a xarray") changedkvm->vcpusarray to a xarray, so update the code comment ofkvm_vcpu->vcpu_idxaccordingly.
Applied to kvm-x86 generic, thanks!
[1/1] KVM: update code comment in struct kvm_vcpu
https://github.com/kvm-x86/linux/commit/5bad5d55d884
--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes