On 09/13/2012 05:48 PM, Gleb Natapov wrote: > On Thu, Sep 13, 2012 at 09:35:18AM -0500, Anthony Liguori wrote: >> Gleb Natapov <g...@redhat.com> writes: >> >> > On Thu, Sep 13, 2012 at 09:06:29AM -0500, Anthony Liguori wrote: >> >> "Daniel P. Berrange" <berra...@redhat.com> writes: >> >> >> >> I think it's better for QEMU to talk to qemu-ga. We can tell when a large >> >> period of time has passed in QEMU because we'll accumulate a large >> >> number of missed ticks. >> >> >> > With RTC configured to use vm clock we will not. >> >> Not for host suspend. For stop and live migration, we stop vm_clock. >> But QEMU isn't aware of host suspend so vm_clock cannot be stopped. >> > Hmm, true. What about hooking into suspend and doing vmstop during > suspend.
There is a DBus API (UPower) with a method called AboutToSleep(). No idea what it does or if unprivileged processes can access it. libvirt of qemud could do it, of course. -- error compiling committee.c: too many arguments to function