[libvirt] [PATCH 3/3] qemu: add usb-net support

Eric Blake eblake at redhat.com
Mon Jan 7 23:23:55 UTC 2013


On 01/03/2013 12:13 AM, Guannan Ren wrote:
> Libvirt XML sample:
>   <devices>
>     <interface type='user'>
>       <mac address='52:54:00:32:6a:91'/>
>       <model type='usb-net'/>
>       <alias name='net1'/>
>       <address type='usb' bus='0' port='1'/>
>     </interface>
>   </devices>
> 
> qemu commandline:
> 
> qemu ${other_vm_args}
>     -netdev user,id=hostnet1 \
>     -device usb-net,netdev=hostnet1,id=net1,\
>       mac=52:54:00:32:6a:91,bus=usb.0,port=1
> ---
>  docs/formatdomain.html.in |  4 +++-
>  src/conf/domain_conf.c    | 18 +++++++++++++-----
>  src/qemu/qemu_command.c   |  8 +++++++-
>  3 files changed, 23 insertions(+), 7 deletions(-)
> 

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130107/50291ef1/attachment-0001.sig>


More information about the libvir-list mailing list