From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br3r6-00064r-U7 for qemu-devel@nongnu.org; Mon, 03 Oct 2016 10:04:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br3r1-0007zW-Qv for qemu-devel@nongnu.org; Mon, 03 Oct 2016 10:04:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br3r1-0007zS-KS for qemu-devel@nongnu.org; Mon, 03 Oct 2016 10:04:27 -0400 Date: Mon, 3 Oct 2016 15:04:23 +0100 From: Stefan Hajnoczi Message-ID: <20161003140423.GG10245@stefanha-x1.localdomain> References: <1475068103-356-1-git-send-email-berrange@redhat.com> <1475068103-356-15-git-send-email-berrange@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bO4vSxwwZtUjUWHo" Content-Disposition: inline In-Reply-To: <1475068103-356-15-git-send-email-berrange@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 14/20] trace: dynamically allocate trace_dstate in CPUState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org, =?iso-8859-1?Q?Llu=EDs?= Vilanova --bO4vSxwwZtUjUWHo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 28, 2016 at 02:08:17PM +0100, Daniel P. Berrange wrote: > The CPUState struct has a bitmap tracking which VCPU > events are currently active. This is indexed based on > the event ID values, and sized according the maximum > TraceEventVCPUID enum value. >=20 > When we start dynamically assigning IDs at runtime, > we can't statically declare a bitmap without making > an assumption about the max event count. This problem > can be solved by dynamically allocating the per-CPU > dstate bitmap. >=20 > Signed-off-by: Daniel P. Berrange > --- > include/qom/cpu.h | 9 ++++++--- > qom/cpu.c | 8 ++++++-- > trace/control.c | 5 +++++ > trace/control.h | 7 +++++++ > 4 files changed, 24 insertions(+), 5 deletions(-) Reviewed-by: Stefan Hajnoczi --bO4vSxwwZtUjUWHo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJX8mVnAAoJEJykq7OBq3PI4ZcIALSSF+0og4Wen0wZIx8BkYZx A2orHElzBANId8Wx3isI/UrCZHkfftSnDB2RujjEEF4UI0eJtg/WRe5BHQn4ON3G QJGLxk5tZhu9Hx8FZxoMrVu3ygm8V3B747dxKPU+U5jCwS/mudaol8D8u3VYlyEA XOEWCQY76SbK5KB0KU1ML6HWIy/3/EcP8zDFfAJyCmWM+qwlvTepauE6PUn3n8Z8 jH/5L6zugIllDtl2hnwq7UhWUjdintw0KN3GJfTLWPKDg2OK70huFVPuaiwLfUdD ltOBsZSQNrKwZGnbUWCqMsEt9XA4747EPLMZGPIcLB0nQVXPlZCNxJxEo29LtaE= =TQEU -----END PGP SIGNATURE----- --bO4vSxwwZtUjUWHo--