Guido Guenther wrote:
> If the guest can't do that, it simply can't. You can then SIGTERM the
> guest after a timeout. Note that even an acpi system might not be able
> to shut down since it hangs on a network unmount or it ignores the ACPI
> interrupt via kernel commandline or whatever. You can't ever expect a
> system to shutdown cleanly, so you need the SIGTERM failsave anyway.
> Have a look at e.g. domainShutdown() vs. domainDestroy() in libvirt.
>   

Agree, but should try a "quit" monitor command first.  Signals are racy, 
like anything that deals with pids (qemu dies, another process is 
fork()ed with the same pid, libvirt kills it).

-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to