From: Jean-Christian de Rivaz <jc@eclis.ch>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] tun/tap networking: patch for existing tun
Date: Mon, 03 Oct 2005 11:46:57 +0200 [thread overview]
Message-ID: <4340FE11.7020403@eclis.ch> (raw)
In-Reply-To: <20051002223734.GA17623@jbrown.mylinuxbox.org>
> I'd argue that it should be "-tap" or "-tuntap" instead of "-tun", since using
> tun would confuse users who knew the distinction between tun devices and tap
> devices.
Ok for "-tuntap" long option. Can I propose "-t" for a short option ?
> I'm not sure if a "-vde" option is necessary or a good idea, though. We might
> want to keep a "-socket-fd" option around for the really technical people who
> do funny things like that. (imho "-tun-fd" is badly named since it doesn't
> require a tun/tap fd, it works with any type of file descriptor.)
So "-tun-fd" will be renamed "-socket-fd".
The idea of the "-vde" option is to have in parameter the VDE socket
(default to "/tmp/vde.ctl") an act like vde_plug so it don't need any
other code to work. Just start a "vde_switch" and as many "qemu -vde"
you wants to create a complete virtual nework (1 switch and n hosts).
> -tun-fd (or -socket-fd) should probably be kept around for really specialized
> applications (and the geeks who know how to use them). We should have options
> that adaquately cover everything in normal use, of course.
Yes, this is the good way to make it, I agree.
>>So an open question: is the -tun and -vde options a good idea to cleanup
>>the network interface options ? To be clear, I don't propose to remove
>>option at this point, but just to make qemu more easy to use for simple
>>and most common setup.
>
> Actually, they might just add to the clutter. -dummy-net, -user-net, -nics,
> -macaddr, etc. It would be even worse if not for the fact that Fabrice has
> refused to incorporate many networking patches (silently, as usual).
The fact that we don't know what Fabrice think about this subjet is a
problem. Only Fabrice can commit to the qemu CVS as I understand. I hope
Fabrice read this list and can provids to us usefull informations on how
to make the patch to get it accepted.
> So while we're at it, we should redesign the interface for qemu. For each nic,
> we'd have -net type[,macaddr] where type is "tap" or "user" or "dummy" and
> the macaddr is an (optional) parameter that replaces -macaddr. Number of nics
> would depend on number of -net options, with none meaning either no nics or
> one nic defaulting to tap (or user if tap isn't available).
>
> For the tap type we could have a 3rd optional parameter for the name, e.g.
> -net tap,macaddr,name (with name defaulting to tapX if its not specified).
This is an other work, but why not ?
I think that a syntax like "-net type[:macaddr][,arg[,arg[...]]]" is
more usefull, since the MAC addresse of the TAP devices is not alway
specified as it can be set randomly by the Linux kernel (with possible
collision see code in include/linux/etherdevice.h).
The advantage of your proposition is that it make more easy to add new
type of network device like VDE. This enable to possibility to use a
"socket-fd" type to make everyone happy.
In case of this new interface, will network script still needed. If yes,
how should we handle them in the new option syntax ?
--
Jean-Christian de Rivaz
next prev parent reply other threads:[~2005-10-03 10:09 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-30 22:13 [Qemu-devel] tun/tap networking Don Kitchen
2005-09-30 22:21 ` Henrik Nordstrom
2005-09-30 22:21 ` Paul Brook
2005-09-30 23:01 ` Jim C. Brown
2005-10-01 8:12 ` Jean-Christian de Rivaz
2005-10-01 13:12 ` Jim C. Brown
2005-10-01 20:24 ` Jean-Christian de Rivaz
2005-10-01 21:09 ` Jim C. Brown
2005-10-01 21:17 ` Jean-Christian de Rivaz
2005-10-01 20:47 ` [Qemu-devel] tun/tap networking: patch for existing tun Jean-Christian de Rivaz
2005-10-02 2:42 ` Henrik Nordstrom
2005-10-02 7:56 ` Jean-Christian de Rivaz
2005-10-02 10:24 ` Henrik Nordstrom
2005-10-02 16:53 ` Lars Munch
2005-10-02 17:50 ` Jean-Christian de Rivaz
2005-10-02 19:47 ` Jim C. Brown
2005-10-02 20:27 ` Jean-Christian de Rivaz
2005-10-02 18:45 ` Anthony Liguori
2005-10-02 19:39 ` Jim C. Brown
2005-10-02 20:23 ` Jean-Christian de Rivaz
2005-10-02 22:37 ` Jim C. Brown
2005-10-03 9:46 ` Jean-Christian de Rivaz [this message]
2005-10-03 12:04 ` Jim C. Brown
2005-10-03 13:10 ` Jean-Christian de Rivaz
2005-10-03 13:19 ` Henrik Nordstrom
2005-10-03 13:13 ` Henrik Nordstrom
2005-10-03 14:14 ` Jean-Christian de Rivaz
2005-10-03 13:07 ` Henrik Nordstrom
2005-10-03 14:00 ` Jean-Christian de Rivaz
2005-10-03 15:04 ` Jim C. Brown
2005-10-03 13:01 ` Henrik Nordstrom
2005-10-03 13:58 ` Jean-Christian de Rivaz
2005-10-03 15:06 ` Jim C. Brown
2005-10-03 12:54 ` Henrik Nordstrom
2005-10-03 15:14 ` Jim C. Brown
2005-10-03 18:29 ` Fabrice Bellard
2005-10-03 19:22 ` Christian MICHON
2005-10-03 20:29 ` Jean-Christian de Rivaz
2005-10-04 7:09 ` Christian MICHON
2005-10-04 7:56 ` Jean-Christian de Rivaz
2005-10-03 21:36 ` Jim C. Brown
2005-10-04 8:23 ` Matteo
2005-10-04 11:34 ` Jim C. Brown
2005-10-01 17:49 ` [Qemu-devel] tun/tap networking Henrik Nordstrom
2005-10-01 20:54 ` Jean-Christian de Rivaz
2005-10-01 11:30 ` Oliver Gerlich
2005-10-01 13:07 ` Jim C. Brown
2005-10-01 13:50 ` Paul Brook
2005-10-01 21:15 ` Jim C. Brown
2005-10-02 2:21 ` Henrik Nordstrom
2005-10-01 17:52 ` Henrik Nordstrom
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=4340FE11.7020403@eclis.ch \
--to=jc@eclis.ch \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).