]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Pass the VM's UUID into the nwfilter subsystem
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 9 Dec 2011 02:35:20 +0000 (21:35 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 9 Dec 2011 02:35:20 +0000 (21:35 -0500)
commit33eb3567dd35934a9f4cde49bcb92fe0830fcd9d
tree68d286e2fed7cbbd49483c9f4f0793a8adfb4873
parent95ff5899b97fd3a0ad4d141e6679fc0d79726cdd
Pass the VM's UUID into the nwfilter subsystem

A preparatory patch for DHCP snooping where we want to be able to
differentiate between a VM's interface using the tuple of
<VM UUID, Interface MAC address>. We assume that MAC addresses could
possibly be re-used between different networks (VLANs) thus do not only
want to rely on the MAC address to identify an interface.

At the current 'final destination' in virNWFilterInstantiate I am leaving
the vmuuid parameter as ATTRIBUTE_UNUSED until the DHCP snooping patches arrive.
(we may not post the DHCP snooping patches for 0.9.9, though)

Mostly this is a pretty trivial patch. On the lowest layers, in lxc_driver
and uml_conf, I am passing the virDomainDefPtr around until I am passing
only the VM's uuid into the NWFilter calls.
src/conf/domain_nwfilter.c
src/conf/domain_nwfilter.h
src/lxc/lxc_driver.c
src/nwfilter/nwfilter_driver.c
src/nwfilter/nwfilter_gentech_driver.c
src/nwfilter/nwfilter_gentech_driver.h
src/nwfilter/nwfilter_learnipaddr.c
src/qemu/qemu_command.c
src/qemu/qemu_process.c
src/uml/uml_conf.c