[libvirt] [PATCH] Fix macvtap device tear down problem on virsh destroy

Stefan Berger stefanb at us.ibm.com
Tue Feb 16 00:39:32 UTC 2010


This patch fixes the problem with the tear down of the macvtap device
when issuing a 'virsh destroy' by moving the tear down block past the
point of killing the Qemu process. It seems necessary to loop at least
once in the case of 'virsh destory' since the device seems to be busy
for a while after the Qemu process has been killed. This also still
properly tears down the macvtap device when the VM is 'virsh shutdown'ed
or halted from inside.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: macvtap_virsh_destroy.diff
Type: text/x-patch
Size: 1655 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100215/fab81961/attachment-0001.bin>


More information about the libvir-list mailing list