From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpM6D-0001ir-86 for qemu-devel@nongnu.org; Mon, 04 May 2015 15:32:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpM6C-0000DL-3A for qemu-devel@nongnu.org; Mon, 04 May 2015 15:32:17 -0400 Message-ID: <5547C939.6040207@redhat.com> Date: Mon, 04 May 2015 13:32:09 -0600 From: Eric Blake MIME-Version: 1.0 References: <1430766953-6913-1-git-send-email-mreitz@redhat.com> <1430766953-6913-14-git-send-email-mreitz@redhat.com> In-Reply-To: <1430766953-6913-14-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WDOcmutXWJ3eIUNcB1BkcXA2ttbgTRMXI" Subject: Re: [Qemu-devel] [PATCH v4 13/17] qcow2/overlaps: Add "memory limit reached" event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --WDOcmutXWJ3eIUNcB1BkcXA2ttbgTRMXI Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 05/04/2015 01:15 PM, Max Reitz wrote: > Later, a mechanism to set a limit on how much memory may be used for th= e > overlap prevention structures will be introduced. If that limit is abou= t > to be exceeded, a QMP event should be emitted. This very event is > specified by this patch. >=20 > Signed-off-by: Max Reitz > --- > docs/qmp/qmp-events.txt | 28 ++++++++++++++++++++++++++++ > qapi/event.json | 27 +++++++++++++++++++++++++++ > 2 files changed, 55 insertions(+) > + > +Data: > +- "reference": Device name if set; node name otherwise. (json-string) > +- "start": Offset of the range of clusters (possibly) no longer be= ing > + checked for writes overlapping with existing metadata. > + (json-int, optional) > +- "length": Length of that range in bytes. (json-int, optional) > + > +Example: > + > +{ "event": "QCOW2_OVERLAP_CHECK_MEMORY_LIMIT_REACHED", > + "data": { "reference": "virtio0", "start": "805306368", > + "length": "268435456" }, s/"805306368"/805306368/ and likewise for length (a json-int does not use quotes). Otherwise seems okay. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --WDOcmutXWJ3eIUNcB1BkcXA2ttbgTRMXI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVR8k5AAoJEKeha0olJ0NqpdUIAIzs6zvViDeafGF7uf5l3oaF +r4CBwz5EfHWudVRnksP/7ZOWEfYtBAOP7StcTS/KAg3oH+jR5eltNglZs+XPolh Gr9GSJxHug67pCaqf8QPoMYZZLB++HExALP2dA/wzh/bWOW7/alOt5R3Rj34tQXr Tab6meytEPXenrT9qZhDIdhT50IvMZGKxKIAogfyZcVkMKH2bzAXPrhABzcq5myF 7lp0yMQckbAOgEv936PbN7QSn+IRHUFmjZ1PqiuAggwQkW794eB1vMQ2GiTHPZRF clcTNGVFuhQRRvqBrG9BB4W2PwCpsEfOWzx+2gkJRLWujk1DxKkz/d9K8PUnRPI= =qEOd -----END PGP SIGNATURE----- --WDOcmutXWJ3eIUNcB1BkcXA2ttbgTRMXI--