From: Asias He <asias.hejun@gmail.com>
To: Sasha Levin <levinsasha928@gmail.com>
Cc: penberg@cs.helsinki.fi, kvm@vger.kernel.org, mingo@elte.hu,
gorcunov@gmail.com
Subject: Re: [PATCH v2] kvm tools: Support multiple net devices
Date: Mon, 26 Sep 2011 20:22:37 +0800 [thread overview]
Message-ID: <4E806E8D.70800@gmail.com> (raw)
In-Reply-To: <1317039271.4465.4.camel@lappy>
On 09/26/2011 08:14 PM, Sasha Levin wrote:
> On Mon, 2011-09-26 at 20:11 +0800, Asias He wrote:
>> On 09/26/2011 07:59 PM, Sasha Levin wrote:
>>> On Mon, 2011-09-26 at 19:57 +0800, Asias He wrote:
>>>> On 09/25/2011 07:11 PM, Sasha Levin wrote:
>>>>> This patch adds support for multiple network devices. The command
>>>> line syntax
>>>>> changes to the following:
>>>>>
>>>>> --network/-n [mode=[tap/user/none]] [guest_ip=[guest ip]]
>>>> [host_ip=
>>>>> [host_ip]] [guest_mac=[guest_mac]] [script=[script]]
>>>>
>>>> This syntax is actually, no?
>>>>
>>>> --network/-n mode=tap,guest_ip=x.x.x.x
>>>>
>>>> not
>>>>
>>>> --network/-n mode=tag guest_ip=x.x.x.x
>>>>
>>>>
>>>> This works for me:
>>>> $ sudo ./kvm run -d sid.img -p root=/dev/vda1 -k bzImage \
>>>> -n mode=tap,host_ip=192.168.100.1 -n mode=tap,host_ip=192.168.200.1
>>>>
>>>> This does not work for me:
>>>> $ sudo ./kvm run -d sid.img -p root=/dev/vda1 -k bzImage \
>>>> -n mode=tap host_ip=192.168.100.1 -n mode=tap host_ip=192.168.200.1
>>>
>>> Yes, with ',' ofcourse :)
>>
>> Sasha, Can you drop these []? There are way too many []. Although []
>> tells user this option is optional.
>>
>> --network/-n [mode=[tap/user/none]] [guest_ip=[guest ip]] [host_ip=
>> [host_ip]] [guest_mac=[guest_mac]] [script=[script]]
>>
>>
>> Does this look ok?
>> --network/-n
>> mode=tap|user|none,guest_ip=x.x.x.x,host_ip=x.x.x.x,guest_mac=xx:xx:xx:xx:xx:xx,script=script.sh
>
> We really need them to specify they are optional.
>
> How about this:
>
> --network/-n
> [mode=tap/user/none][,guest_ip=ip][,host_ip=ip][,guest_mac=mac][,script=file]
OK.
--
Asias He
next prev parent reply other threads:[~2011-09-26 12:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-25 11:11 [PATCH v2] kvm tools: Support multiple net devices Sasha Levin
2011-09-26 6:10 ` Pekka Enberg
2011-09-26 11:57 ` Asias He
2011-09-26 11:59 ` Sasha Levin
2011-09-26 12:11 ` Asias He
2011-09-26 12:14 ` Sasha Levin
2011-09-26 12:22 ` Asias He [this message]
2011-09-26 14:54 ` Pekka Enberg
2011-09-26 15:05 ` Asias He
2011-09-26 16:21 ` Avi Kivity
2011-09-26 16:37 ` Sasha Levin
2011-09-26 16:46 ` Pekka Enberg
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=4E806E8D.70800@gmail.com \
--to=asias.hejun@gmail.com \
--cc=gorcunov@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=levinsasha928@gmail.com \
--cc=mingo@elte.hu \
--cc=penberg@cs.helsinki.fi \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox