• S
    macvtap teardown rework · f162252e
    Stefan Berger 提交于
    Rework and simplification of teardown of the macvtap device.
    
    Basically all devices with the same MAC address and link device are kept
    alive and not attempted to be torn down. If a macvtap device linked to a
    physical interface with a certain MAC address 'M' is to be created it
    will automatically fail if the interface is 'up'ed and another macvtap
    with the same properties (MAC addr 'M', link dev) happens to be 'up'.
    This will prevent the VM from starting or the device from being attached
    to a running VM. Stale interfaces are assumed to be there for some
    reason and not stem from libvirt.
    
    In the VM shutdown path, it's assuming that an interface name is always
    available so that if the device type is DIRECT it can be torn down
    using its name.
    
    * src/util/macvtap.h src/libvirt_macvtap.syms: change of deleting routine
    * src/util/macvtap.c: cleanups and change of deleting routine
    * src/qemu/qemu_driver.c: change cleanup on shutdown
    * src/qemu/qemu_conf.c: don't delete Macvtap in qemudPhysIfaceConnect()
    f162252e
qemu_conf.c 173.5 KB