All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: update code comment in struct kvm_vcpu
@ 2023-02-02  8:13 Wang Yong
  2023-02-08  2:02 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Yong @ 2023-02-02  8:13 UTC (permalink / raw)
  To: pbonzini, maz; +Cc: kvm, linux-kernel, Wang Yong

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 <yongw.kernel@gmail.com>
---
 include/linux/kvm_host.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 4f26b244f6d0..67edeb4e18f5 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -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;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: update code comment in struct kvm_vcpu
  2023-02-02  8:13 [PATCH] KVM: update code comment in struct kvm_vcpu Wang Yong
@ 2023-02-08  2:02 ` Sean Christopherson
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2023-02-08  2:02 UTC (permalink / raw)
  To: Sean Christopherson, pbonzini, maz, Wang Yong; +Cc: kvm, linux-kernel

On Thu, 02 Feb 2023 08:13:42 +0000, Wang Yong wrote:
> 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.
> 
> 

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-08  2:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02  8:13 [PATCH] KVM: update code comment in struct kvm_vcpu Wang Yong
2023-02-08  2:02 ` Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.