]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add udp interface support
authorJonathan Toppins <jtoppins@cumulusnetworks.com>
Sat, 29 Aug 2015 20:19:10 +0000 (16:19 -0400)
committerJán Tomko <jtomko@redhat.com>
Wed, 2 Sep 2015 08:17:50 +0000 (10:17 +0200)
commit5c668a78d85b0d71e6ac8e23f2c605058b44df65
tree374f73a7afccfee0e3bd6c70d1f3693ba3281be2
parentb3ea3bab3f7947d4cc308353187d7b88158e0731
qemu: add udp interface support

Adds a new interface type using UDP sockets, this seems only applicable
to QEMU but have edited tree-wide to support the new interface type.

The interface type required the addition of a "localaddr" (local
address), this then maps into the following xml and qemu call.

<interface type='udp'>
  <mac address='52:54:00:5c:67:56'/>
  <source address='127.0.0.1' port='11112'>
    <local address='127.0.0.1' port='22222'/>
  </source>
  <model type='virtio'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</interface>

QEMU call:
-net socket,udp=127.0.0.1:11112,localaddr=127.0.0.1:22222

Notice the xml "local" entry becomes the "localaddr" for the qemu call.

reference:
http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg00629.html

Signed-off-by: Jonathan Toppins <jtoppins@cumulusnetworks.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
18 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/netdev_bandwidth_conf.h
src/libxl/libxl_conf.c
src/lxc/lxc_controller.c
src/lxc/lxc_process.c
src/qemu/qemu_command.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_interface.c
src/uml/uml_conf.c
src/xenconfig/xen_sxpr.c
tests/qemuxml2argvdata/qemuxml2argv-net-udp.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-net-udp.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c
tools/virsh-domain.c