From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZxK3-0003dZ-QI for qemu-devel@nongnu.org; Thu, 10 Sep 2015 04:35:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZxK2-00070M-Ni for qemu-devel@nongnu.org; Thu, 10 Sep 2015 04:35:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZxK2-0006zx-JN for qemu-devel@nongnu.org; Thu, 10 Sep 2015 04:35:10 -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 (Postfix) with ESMTPS id 4338E2F02BC for ; Thu, 10 Sep 2015 08:35:10 +0000 (UTC) Date: Thu, 10 Sep 2015 09:35:06 +0100 From: "Daniel P. Berrange" Message-ID: <20150910083506.GB11366@redhat.com> References: <1441192183-4812-1-git-send-email-marcandre.lureau@redhat.com> <1441192183-4812-3-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1441192183-4812-3-git-send-email-marcandre.lureau@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/3] monitor: throttle QAPI_EVENT_VSERPORT_CHANGE by "id" Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com Cc: amit.shah@redhat.com, lersek@redhat.com, qemu-devel@nongnu.org On Wed, Sep 02, 2015 at 01:09:42PM +0200, marcandre.lureau@redhat.com wro= te: > From: Marc-Andr=C3=A9 Lureau >=20 > Use a hash table to lookup the pending event corresponding to the "id" > field. The hash table may grow without limit here, the following patch > will add some cleaning. >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau > Reviewed-by: Eric Blake > --- > monitor.c | 104 ++++++++++++++++++++++++++++++++++++++++++++++--------= -------- > 1 file changed, 78 insertions(+), 26 deletions(-) Reviewed-by: Daniel P. Berrange Regards, Daniel --=20 |: http://berrange.com -o- http://www.flickr.com/photos/dberrange= / :| |: http://libvirt.org -o- http://virt-manager.or= g :| |: http://autobuild.org -o- http://search.cpan.org/~danberr= / :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vn= c :|