[libvirt] 答复: Re: [PATCH v2] qemu: clean up network interfaces beforeqemuProcessKill is called in qemuProcessStop

Daniel P. Berrange berrange at redhat.com
Mon May 8 09:36:41 UTC 2017

On Mon, May 08, 2017 at 05:18:17PM +0800, lu.zhipeng at zte.com.cn wrote:
> >This fix won't work correctly either. You cannot assume that libvirt has
> >control over when the QEMU process exits. It may exit itself *before*
> >libvirt runs any of its cleanup code.
> I don't think there's a problem.  Although  libvirt does not runs cleanup
> code .but tap devices don't exist when when the QEMU process exits.

That still does not make sense. There is no difference in the way tap devices
are cleaned up whether QEMU exits "normally" on its own, or when libvirt kills
QEMU explicitly

|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

More information about the libvir-list mailing list