From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adhZB-0005ef-RP for qemu-devel@nongnu.org; Wed, 09 Mar 2016 12:06:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adhZA-0006wO-VS for qemu-devel@nongnu.org; Wed, 09 Mar 2016 12:06:33 -0500 References: <6401f35ed688166e5c1d4890e029a23c494773db.1457539274.git.berto@igalia.com> From: Max Reitz Message-ID: <56E05811.4000808@redhat.com> Date: Wed, 9 Mar 2016 18:06:25 +0100 MIME-Version: 1.0 In-Reply-To: <6401f35ed688166e5c1d4890e029a23c494773db.1457539274.git.berto@igalia.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FX45UBO7iVT1s3Wej4mjBXrMm3bkC3wpN" Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 3/4] monitor: Use QEMU_CLOCK_VIRTUAL for the event queue in qtest mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FX45UBO7iVT1s3Wej4mjBXrMm3bkC3wpN Content-Type: multipart/mixed; boundary="jQUtqHfblTDqFRVRXobt2US46qVBEqHnB" From: Max Reitz To: Alberto Garcia , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org Message-ID: <56E05811.4000808@redhat.com> Subject: Re: [Qemu-block] [PATCH 3/4] monitor: Use QEMU_CLOCK_VIRTUAL for the event queue in qtest mode References: <6401f35ed688166e5c1d4890e029a23c494773db.1457539274.git.berto@igalia.com> In-Reply-To: <6401f35ed688166e5c1d4890e029a23c494773db.1457539274.git.berto@igalia.com> --jQUtqHfblTDqFRVRXobt2US46qVBEqHnB Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 09.03.2016 17:11, Alberto Garcia wrote: > This allows us to perform tests on the monitor queues to verify that > the rate limits are enforced. >=20 > Signed-off-by: Alberto Garcia > --- > monitor.c | 13 ++++++++++--- > 1 file changed, 10 insertions(+), 3 deletions(-) >=20 > diff --git a/monitor.c b/monitor.c > index c9fe862..d689b83 100644 > --- a/monitor.c > +++ b/monitor.c > @@ -76,6 +76,7 @@ > #include "qapi-event.h" > #include "qmp-introspect.h" > #include "sysemu/block-backend.h" > +#include "sysemu/qtest.h" > =20 > /* for hmp_info_irq/pic */ > #if defined(TARGET_SPARC) > @@ -232,6 +233,8 @@ static const mon_cmd_t qmp_cmds[]; > =20 > Monitor *cur_mon; > =20 > +static QEMUClockType clock_type =3D QEMU_CLOCK_REALTIME; Maybe event_clock_type would be a better name. Regardless: Reviewed-by: Max Reitz --jQUtqHfblTDqFRVRXobt2US46qVBEqHnB-- --FX45UBO7iVT1s3Wej4mjBXrMm3bkC3wpN 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 iQEcBAEBCAAGBQJW4FgRAAoJEDuxQgLoOKytlw0IAIbaSoFhFAfucGUW1DROhJL/ 1sTO2aQbyF95edJD7i4FnO9zj8PLYSM+GTOcUUGTSeVf0/wsTBs3dA0vWAuAOl4R x4ypVFBgTwmKuRgJyQyxB1pcbTX3Us9HlyK8UHQO2Cd0Aov6VCZzE6eJWmr/vFEf 8yq9XAOC8alw0b+Vyfg7T6Ilp4WOc8uIIg3lZPoELreUEPftRBNxt/+wl3s8iEqw XkxZuUpokiClclSz5406s0JMnWwNtx9SB2IGniS3kbr/cIYelMg7KzoTFETLa8He GslTtaH4S4u/63tpeLIvzCFhAPhVesXhxBmcOSqKAGlysW6FWnQ4s5jcOBGAQbg= =WJrt -----END PGP SIGNATURE----- --FX45UBO7iVT1s3Wej4mjBXrMm3bkC3wpN--