• S
    Pass the VM's UUID into the nwfilter subsystem · 33eb3567
    Stefan Berger 提交于
    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.
    33eb3567
qemu_command.c 250.3 KB