[libvirt] [PATCH] macvtap teardown rework

Stefan Berger stefanb at us.ibm.com
Wed Feb 17 20:05:53 UTC 2010


I have reworked and simplified the 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 I am assuming that an interface name is always
available so that if the device type is DIRECT it can be torn down using
its name.

Signed-off-by: Stefan Berger <stefanb at us.ibm.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: macvtap_teardown_rework.diff
Type: text/x-patch
Size: 8073 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100217/e6fe4a46/attachment-0003.bin>


More information about the libvir-list mailing list