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

Guannan Ren gren at redhat.com
Thu Jan 3 07:13:03 UTC 2013


The set of patches fixed some typo in network docs and codes and
is trying to support usb-net qemu virtual device.

The following is an example for use.

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

Guannan Ren(3)
  [PATCH 1/3] network: fix typos and docs
  [PATCH 2/3] qemu: add usb-net caps flag
  [PATCH 3/3] qemu: add usb-net support

 docs/formatdomain.html.in    | 13 +++++++++----
 src/conf/domain_conf.c       | 22 +++++++++++++++-------
 src/qemu/qemu_capabilities.c |  2 ++
 src/qemu/qemu_capabilities.h |  1 +
 src/qemu/qemu_command.c      |  8 +++++++-
 tests/qemuhelptest.c         | 21 ++++++++++++++-------
 6 files changed, 48 insertions(+), 19 deletions(-)




More information about the libvir-list mailing list