Re: [Qemu-devel] [PATCH v4 4/4] Add support for net bridge

2011-11-02 Thread Corey Bryant
On 11/02/2011 04:12 AM, Mark Wu wrote: On 11/02/2011 01:13 AM, Corey Bryant wrote: static int net_tap_init(QemuOpts *opts, int *vnet_hdr) { int fd, vnet_hdr_required; @@ -433,8 +570,11 @@ int net_init_tap(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan if (qemu_opt_get(opts, "i

Re: [Qemu-devel] [PATCH v4 4/4] Add support for net bridge

2011-11-02 Thread Mark Wu
On 11/02/2011 01:13 AM, Corey Bryant wrote: static int net_tap_init(QemuOpts *opts, int *vnet_hdr) { int fd, vnet_hdr_required; @@ -433,8 +570,11 @@ int net_init_tap(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan if (qemu_opt_get(opts, "ifname") ||

[Qemu-devel] [PATCH v4 4/4] Add support for net bridge

2011-11-01 Thread Corey Bryant
The most common use of -net tap is to connect a tap device to a bridge. This requires the use of a script and running qemu as root in order to allocate a tap device to pass to the script. This model is great for portability and flexibility but it's incredibly difficult to eliminate the need to ru