<br><tt><font size=2>Daniel,</font></tt>
<br>
<br><tt><font size=2>  some of this code doesn't build anymore due
to the recent changes with the conn parameter being removed. </font></tt>
<br><tt><font size=2>Do you want me to re-submit?</font></tt>
<br><tt><font size=2>  I actually liked the conn parameter for error
reporting and handling in the return path. Any function</font></tt>
<br><tt><font size=2>where the conn parameter was needed, I anticipated
a simple return code for success and failure with the </font></tt>
<br><tt><font size=2>error already attached to the 'conn' parameter via
one of the error reporting functions. Other functions </font></tt>
<br><tt><font size=2>where the conn parameter was not passed, the return
value was anticipated to have an 'errno meaning'. Now </font></tt>
<br><tt><font size=2>that meaning seems lost. I am wondering whether I
can still leave the conn parameter as an ATTRIBUTE_UNUSED</font></tt>
<br><tt><font size=2>for those functions where I only anticipate a success/failure
return and error already being reported</font></tt>
<br><tt><font size=2>via a function?</font></tt>
<br>
<br><tt><font size=2>Regards,</font></tt>
<br><tt><font size=2>   Stefan</font></tt>
<br>
<br>
<br><tt><font size=2>libvir-list-bounces@redhat.com wrote on 02/08/2010
02:35:43 PM:<br>
</font></tt>
<br><tt><font size=2>> <br>
> Hello!<br>
> <br>
>   This is a re-post of previously posted patches following Daniel<br>
> Berrange's request for changes along with other fixes.<br>
> <br>
>   The following patches provide support for making the macvtap<br>
> networking device type available to Qemu/KVM VMs. The patches rely
on<br>
> the macvtap driver that just became available through the Linux net-next<br>
> tree (fixes still may be necessary) and make the device available
to<br>
> Qemu/KVM via a tap file descriptor similar to a 'regular' tap device.<br>
>   Following up on previous discussions, the libvirt patches allow
using<br>
> the following XML in the domain description to enable qemu network<br>
> connectivity via this type of device:<br>
> <br>
>     <interface type='direct'><br>
>       <source dev='eth1' mode='vepa'/><br>
>       <model type='virtio'/><br>
>     </interface><br>
> <br>
>   The above XML indicates that eth1 is the Ethernet interface
to link<br>
> the macvtap device to and communicate to the network. As a consequence,<br>
> libvirt will create an instance of a macvtap device, assign it the
same<br>
> MAC address as the VM's interface has and open a file descriptor of
the<br>
> associated character device /dev/tap%d and pass it via command line
to<br>
> Qemu/kvm. In the above XML the mode can be chosen as 'vepa', 'private'<br>
> or 'bridge' and is by default set to 'vepa'(by the driver) if omitted.<br>
> <br>
> Attachment and detachment of macvtap to/from a running VM also works.<br>
> <br>
> Regards,<br>
>    Stefan<br>
> <br>
> <br>
> <br>
> --<br>
> libvir-list mailing list<br>
> libvir-list@redhat.com<br>
> </font></tt><a href="https://www.redhat.com/mailman/listinfo/libvir-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/libvir-list</font></tt></a><tt><font size=2><br>
</font></tt>