From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzYlI-00063m-9g for qemu-devel@nongnu.org; Thu, 09 Aug 2012 15:51:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzYlG-0000NK-Hi for qemu-devel@nongnu.org; Thu, 09 Aug 2012 15:51:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzYlG-0000LJ-7x for qemu-devel@nongnu.org; Thu, 09 Aug 2012 15:51:14 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q79JpDdJ011349 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 9 Aug 2012 15:51:13 -0400 Message-ID: <502414AE.3080105@redhat.com> Date: Thu, 09 Aug 2012 13:51:10 -0600 From: Eric Blake MIME-Version: 1.0 References: <20120809143032.44b147fe@doriath.home> In-Reply-To: <20120809143032.44b147fe@doriath.home> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigAFAF13298717908475974179" Subject: Re: [Qemu-devel] [PATCH 5/5] qmp: add SUSPEND_DISK event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: mkletzan@redhat.com, qemu-devel , gleb@redhat.com, kraxel@redhat.com This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAFAF13298717908475974179 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 08/09/2012 11:30 AM, Luiz Capitulino wrote: > Emitted when the guest makes a request to enter S4 state. >=20 > There are three possible ways of having this event, as described here: >=20 > http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg02307.html >=20 > I've decided to add a new event and make it indepedent of SHUTDOWN. > This means that the SHUTDOWN event will eventually follow the > SUSPEND_DISK event. >=20 > I've choosen this way because of two reasons: >=20 > 1. Having an indepedent event makes it possible to query for its > existence by using query-events >=20 > 2. In the future, we may allow the user to change what QEMU should > do as a result of the guest entering S4. So it's a good idea to > keep both events separated Indeed makes sense as a separate event. >=20 > Signed-off-by: Luiz Capitulino > --- >=20 > This is on top of: >=20 > [PATCH 0/4]: qmp: WAKEUP event related fixes >=20 > QMP/qmp-events.txt | 14 ++++++++++++++ > hw/acpi.c | 2 ++ > monitor.c | 1 + > monitor.h | 1 + > 4 files changed, 18 insertions(+) >=20 > diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt > index 2001a71..1c51bee 100644 > --- a/QMP/qmp-events.txt > +++ b/QMP/qmp-events.txt > @@ -252,6 +252,20 @@ Example: > { "event": "SUSPEND", > "timestamp": { "seconds": 1344456160, "microseconds": 309119 } } > =20 > +SUSPEND_DISK > +------------ > + > +Emitted when the guest makes a request to enter S4 state. > + > +Data: None. > + > +Example: > + > +{ "event": "SUSPEND_DISK", > + "timestamp": { "seconds": 1344456160, "microseconds": 309119 } } > + > +Note: QEMU shutdowns when entering S4 state. s/shutdowns/shuts down/ Is that true when you use the -no-shutdown flag? Do you get this event if you did not use the -no-shutdown flag? --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigAFAF13298717908475974179 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJQJBSvAAoJEKeha0olJ0Nq/yAH/2wIkt/pDavsLMPCxql+5y5G 1M8tdC4IkYyC2c/0A5vF8IIFfrM1wlNerXJ+DJw0J/AlaVJZSLUihdJKPdXMpEZj JMMwLU16OT3/RBGeuxozQKio6tSI9hi+RD/Q9R8x1SnKOIndfl3bq1Wa01wmH3f/ DHqELnJzT8FNuVYOncyzq9FcBctYcZBp8YMOTHxz65rdzHrHsuXAXahmF6MaIHYZ cwTwyGNL9/xm+DJefVrySPu6P9DkG/5sjqbr+tvgEToorKimQw7FR+JIC5s4dBNC 8TdHTb3QoCQVUHRje3UixmJn+sh2T+InASHaDizeyHvOVxrfnde4Uy8BclyAVxg= =LUU5 -----END PGP SIGNATURE----- --------------enigAFAF13298717908475974179--