[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] libqos: Convert malloc-pc allocator to a generi
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] libqos: Convert malloc-pc allocator to a generic allocator |
Date: |
Wed, 22 Oct 2014 17:01:53 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Sat, Oct 18, 2014 at 11:24:17AM +0200, Marc Marí 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 parameters.
> As a result, only the allocator initalizer and unitializer are arch dependent.
>
> Signed-off-by: Marc Marí <address@hidden>
> ---
> tests/Makefile | 2 +-
> tests/libqos/malloc-pc.c | 280
> +---------------------------------------------
> tests/libqos/malloc-pc.h | 11 +-
> tests/libqos/malloc.c | 268 ++++++++++++++++++++++++++++++++++++++++++++
> tests/libqos/malloc.h | 45 +++++---
> 5 files changed, 307 insertions(+), 299 deletions(-)
> create mode 100644 tests/libqos/malloc.c
Reviewed-by: Stefan Hajnoczi <address@hidden>
pgpS8KRvdeg64.pgp
Description: PGP signature