
On Wed, Feb 17, 2010 at 03:05:53PM -0500, Stefan Berger wrote:
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@us.ibm.com>
Okay, applied, I just removed an unused header pointed out by syntax-check :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/