qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] QMP event for suspend to disk
@ 2012-07-18 14:02 Luiz Capitulino
  2012-07-18 14:17 ` Eric Blake
  0 siblings, 1 reply; 2+ messages in thread
From: Luiz Capitulino @ 2012-07-18 14:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Eric Blake, Anthony Liguori

Hi,

QEMU can now distinguish between S4 and power off for the guest OSes that
suspends to disk through S4. This means that we can have a QMP event for S4
(so that QMP clients can distinguish between S3 and S4).

However, as we already emit the SHUTDOWN event for this, it turns out that
there are three different ways of supporting the new event. We could:

 1. not emit the SHUTDOWN event and only emit the SUSPEND_DISK event

    cons: breaks compatibility, as we'll stop sending an event we send today.

 2. emit both, that is, first SUSPEND_DISK and then SHUTDOWN

    cons: emitting two very similar events.

 3. extend the SHUTDOWN event to say whether it's a suspend to disk or not,
    like this:

       { "event": "SHUTDOWN", "data": { "suspend-to-disk": true }, ... }

    cons: we already have the SUSPEND event, so from an API perspective
          it would make sense to have SUSPEND_DISK.

I prefer item 3, because it seems to be cleanest one.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-18 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-18 14:02 [Qemu-devel] QMP event for suspend to disk Luiz Capitulino
2012-07-18 14:17 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).