From: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
To: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Cc: Takuya Yoshikawa <takuya.yoshikawa@gmail.com>,
avi@redhat.com, mtosatti@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH 1/4] KVM: Rename vm_list to kvm_list to avoid confusion
Date: Mon, 12 Dec 2011 16:10:34 +0900 [thread overview]
Message-ID: <4EE5A8EA.20607@oss.ntt.co.jp> (raw)
In-Reply-To: <4EE58863.5020102@linux.vnet.ibm.com>
(2011/12/12 13:51), Xiao Guangrong wrote:
> On 12/12/2011 12:04 PM, Takuya Yoshikawa wrote:
>
>> (2011/12/12 12:16), Xiao Guangrong wrote:
>>> On 12/12/2011 06:24 AM, Takuya Yoshikawa wrote:
>>>
>>>> From: Takuya Yoshikawa<yoshikawa.takuya@oss.ntt.co.jp>
>>>>
>>>> Make it clear that this is not related to virtual memory.
>>>>
>>>
>>>
>>> 'vm' means 'virtual machine'...
>>
>> Of course I know. So I wrote "not related" to virtual memory.
>>
>> What's your point?
>>
>
>
> In the code, we have kvm_create_vm()/kvm_destroy_vm(), then
> add/delete the 'vm" to/from the "vm_list", it is really clear,
> so i think this name is OK. :)
>
Some reasons I wanted to change this:
- The lock which protects this list is called kvm_lock, not vm_lock
- Some architectures are using vm_list for vm region member
- The list connects kvm instances (struct kvm) and we are doing
list_for_each_entry(kvm, &vm_list, vm_list), not
list_for_each_entry(vm, &vm_list, vm_list)
In the case of kvm_create_vm(), it creates not only a kvm instance but also
does more virtual machine initialization generally. So _vm is reasonable.
(I do not mind if it is static in kvm_main.c but it is more widely used.)
But I do not mind to drop this patch if other people also want to keep the
name. So I will wait some more comments.
Thanks,
Takuya
next prev parent reply other threads:[~2011-12-12 7:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-11 22:22 [PATCH 0/4] KVM: Make mmu_shrink() scan nr_to_scan shadow pages Takuya Yoshikawa
2011-12-11 22:24 ` [PATCH 1/4] KVM: Rename vm_list to kvm_list to avoid confusion Takuya Yoshikawa
2011-12-12 3:16 ` Xiao Guangrong
2011-12-12 4:04 ` Takuya Yoshikawa
2011-12-12 4:51 ` Xiao Guangrong
2011-12-12 7:10 ` Takuya Yoshikawa [this message]
2011-12-11 22:24 ` [PATCH 2/4] KVM: MMU: Make common preparation code for zapping sp into a function Takuya Yoshikawa
2011-12-11 22:25 ` [PATCH 3/4] KVM: MMU: Make preparation for zapping some sp into a separate function Takuya Yoshikawa
2011-12-12 1:19 ` Takuya Yoshikawa
2011-12-11 22:26 ` [PATCH 4/4] KVM: MMU: Make mmu_shrink() scan nr_to_scan shadow pages Takuya Yoshikawa
2011-12-16 11:06 ` Marcelo Tosatti
2011-12-16 14:58 ` Takuya Yoshikawa
2011-12-19 8:43 ` Avi Kivity
2011-12-19 9:22 ` Takuya Yoshikawa
2011-12-19 9:26 ` Avi Kivity
2011-12-19 9:56 ` Takuya Yoshikawa
2011-12-19 10:03 ` Avi Kivity
2011-12-19 10:21 ` Takuya Yoshikawa
2011-12-19 10:24 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE5A8EA.20607@oss.ntt.co.jp \
--to=yoshikawa.takuya@oss.ntt.co.jp \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=takuya.yoshikawa@gmail.com \
--cc=xiaoguangrong@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.