From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEddq-0006YB-Q7 for qemu-devel@nongnu.org; Tue, 05 Aug 2014 08:15:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEddl-00012P-Rq for qemu-devel@nongnu.org; Tue, 05 Aug 2014 08:14:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEddl-00012L-J6 for qemu-devel@nongnu.org; Tue, 05 Aug 2014 08:14:53 -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 s75CErkx019159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 5 Aug 2014 08:14:53 -0400 Message-ID: <53E0CABC.1050403@redhat.com> Date: Tue, 05 Aug 2014 06:14:52 -0600 From: Eric Blake MIME-Version: 1.0 References: <1406121438-23083-1-git-send-email-lcapitulino@redhat.com> <1406121438-23083-3-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1406121438-23083-3-git-send-email-lcapitulino@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2Qauqlsm9DFGN52r7Ppsa3WFvDcFto4NV" Subject: Re: [Qemu-devel] [RFC 2/3] QMP: rate limit BLOCK_IO_ERROR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino , qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, armbru@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2Qauqlsm9DFGN52r7Ppsa3WFvDcFto4NV Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/23/2014 07:17 AM, Luiz Capitulino wrote: > This event has the same characteristics of the other rate-limited > events, mainly we can emit dozens of it. Rate limit it then. >=20 > Signed-off-by: Luiz Capitulino > --- > monitor.c | 1 + > 1 file changed, 1 insertion(+) It's not guest-triggered, per se, but can indeed flood management. Reviewed-by: Eric Blake >=20 > diff --git a/monitor.c b/monitor.c > index 5bc70a6..33abe6c 100644 > --- a/monitor.c > +++ b/monitor.c > @@ -589,6 +589,7 @@ static void monitor_qapi_event_init(void) > monitor_qapi_event_throttle(QAPI_EVENT_QUORUM_REPORT_BAD, 1000); > monitor_qapi_event_throttle(QAPI_EVENT_QUORUM_FAILURE, 1000); > monitor_qapi_event_throttle(QAPI_EVENT_VSERPORT_CHANGE, 1000); > + monitor_qapi_event_throttle(QAPI_EVENT_BLOCK_IO_ERROR, 1000); > =20 > qmp_event_set_func_emit(monitor_qapi_event_queue); > } >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --2Qauqlsm9DFGN52r7Ppsa3WFvDcFto4NV 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJT4Mq8AAoJEKeha0olJ0NqEWAIAKcfXCuXJd+E+MCePMAxqJRh 0ZLsJpCDMDlkxUUPpSYduEv3nfI6bsNLL4fTamfSV41uuitqB4c9aVtvm/8jqPHy Tl7FZam5ex+Que3aoKeI99j7Gi5UG0NWCD8IuZt2E/GlWD6b2wg6UmMAdTGcYQ07 35dIC8UTEB966A4KOK5cUxtVD92xSQWzw2JP79NhN8V28xZRFNc4n3olDb0FVWrW g4hkN/EqEfCfVlMkveN3piZu3GNCp6bZaWoaSp9o4J4j3hdcoSxQ2n/zrZ2b8z+D 7MKBTWVhX2ksbUuEo3qOCD0yD3KqmkRUaaPdR678cN/S22QrcrFRZ1pss62Yq5g= =0cFJ -----END PGP SIGNATURE----- --2Qauqlsm9DFGN52r7Ppsa3WFvDcFto4NV--