On Mon, Jul 31, 2017 at 04:23:51PM +0800, llilulu wrote:> When stop a qemu vm via libvirt api, I call virDomainShutdown, I can
seen
> the vm shutdown process, But I call virDomainDestroyFlags with
> VIR_DOMAIN_DESTROY_GRACEFULL ,I can't seen the vm shutdown process,
> virDomainDestroyFlags with VIR_DOMAIN_DESTROY_GRACEFULL is gave vm
> driver process a SIGTERM , how vm driver process SIGTERM signal (like
qemu).
The GRACEFUL flag isn't about allowing the guest OS to shutdown. It is the
difference between allowing QEMU to cleanly release resources, vs making
QEMU exit immediately. eg it allows pending / cached I/O operations to
complete before QEMU exits.
Regards,
Daniel
--
|: 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 :|