Received: from eggs.gnu.org ([2001:4830:134:3::10]:57556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8STh-0002M2-Ab for qemu-devel@nongnu.org; Tue, 06 Jan 2015 06:39:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8STe-0000Py-2Q for qemu-devel@nongnu.org; Tue, 06 Jan 2015 06:39:13 -0500 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:62093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8STd-0000Pr-R9 for qemu-devel@nongnu.org; Tue, 06 Jan 2015 06:39:09 -0500 Received: by mail-we0-f172.google.com with SMTP id k11so9459123wes.3 for ; Tue, 06 Jan 2015 03:39:08 -0800 (PST) Date: Tue, 6 Jan 2015 11:39:04 +0000 From: Stefan Hajnoczi Message-ID: <20150106113904.GA29775@stefanha-thinkpad.redhat.com> References: <1414051962-3795-1-git-send-email-marc.mari.barcelo@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <1414051962-3795-1-git-send-email-marc.mari.barcelo@gmail.com> Subject: Re: [Qemu-devel] [PATCH v2] libqos: Convert malloc-pc allocator to a generic allocator List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marc =?iso-8859-1?Q?Mar=ED?= Cc: John Snow , qemu-devel@nongnu.org, Andreas =?iso-8859-1?Q?F=E4rber?= --ibTvN161/egqYuK8 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 23, 2014 at 10:12:42AM +0200, Marc Mar=ED wrote: > The allocator in malloc-pc has been extracted, so it can be used in every= arch. > This operation showed that both the alloc and free functions can be also > generic. > Because of this, the QGuestAllocator has been removed from is function to= wrap > the alloc and free function, and now just contains the allocator paramete= rs. > As a result, only the allocator initalizer and unitializer are arch depen= dent. >=20 > Signed-off-by: Marc Mar=ED > Reviewed-by: Stefan Hajnoczi > --- > tests/Makefile | 2 +- > tests/libqos/malloc-pc.c | 280 +---------------------------------------= ------ > tests/libqos/malloc-pc.h | 11 +- > tests/libqos/malloc.c | 270 ++++++++++++++++++++++++++++++++++++++++= ++++ > tests/libqos/malloc.h | 45 +++++--- > 5 files changed, 309 insertions(+), 299 deletions(-) > create mode 100644 tests/libqos/malloc.c Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --ibTvN161/egqYuK8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUq8lYAAoJEJykq7OBq3PIHckH/2SI3B1eJHUlnwRoGqlNK4PN 50If/v9Wl29As/zhEMZ1PusjxwLcGsXzoWyP4y99hMPBwlbXEr2nYDsqs9xNvLxy CgdLaiZZws80fH78bmr7V3hRJ0FMmo4QKnmdRic6DDDm+BfSrkVVNfSqC65ysCoM 8en+kRpJQpwoGpuYqY8PJ9TVqRIHIb4kKPdvWKb+zN0alKK98UIEYebScoCV4lrS xVZe8TtoaqAGeHcw111ZPXGnTWmGlNLIWJaLU48F4lX7IgLfR1zIRU78kcoq2adg ZgsHp49rkgf3oELqV1naHNNHfNddlqjrF0hENvTsPNH6i7jCIpm3o7otpVeBWjI= =JTFd -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--