[libvirt] [PATCH] Add support for Midonet virtual ports

Antoni Segura Puimedon toni at midokura.com
Tue Feb 17 01:46:13 UTC 2015


Up until now, to plug VMs into the Midonet virtual networks it was
necessary to use the 'last resort' 'ethernet' type. That implied
having the domain tainted and having to deal witht the tap lifecycle
outside of libvirt/VM lifecycle.

With the patch I submit, a new virtualport type will be accepted by
libvirt that will always require an interfaceid (as it is essential
for binding a tap device to a virtual port that the virtual port
itself exists and has a UUID). With that interfaceid, libvirt will
delegate the binding on the Midonet userspace tools.

Antoni Segura Puimedon (1):
  Add support for the midonet virtualport type

 configure.ac                         |  4 ++
 docs/schemas/networkcommon.rng       | 12 +++++
 src/Makefile.am                      |  1 +
 src/conf/domain_conf.h               |  1 +
 src/conf/netdev_vport_profile_conf.c |  3 +-
 src/libvirt_private.syms             |  5 ++
 src/qemu/qemu_hotplug.c              | 25 +++++++---
 src/qemu/qemu_process.c              | 13 +++--
 src/util/virnetdevmidonet.c          | 97 ++++++++++++++++++++++++++++++++++++
 src/util/virnetdevmidonet.h          | 37 ++++++++++++++
 src/util/virnetdevtap.c              | 11 ++--
 src/util/virnetdevvportprofile.c     |  1 +
 src/util/virnetdevvportprofile.h     |  5 +-
 13 files changed, 197 insertions(+), 18 deletions(-)
 create mode 100644 src/util/virnetdevmidonet.c
 create mode 100644 src/util/virnetdevmidonet.h

-- 
2.3.0




More information about the libvir-list mailing list