libqos: Convert malloc-pc allocator to a generic allocator
commit292be092ad48ac530dd254ada109851e9a2353f5
authorMarc Marí <marc.mari.barcelo@gmail.com>
Thu, 23 Oct 2014 08:12:42 +0000 (23 10:12 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Jan 2015 11:47:57 +0000 (13 11:47 +0000)
tree03e1e14f634fd7ea470dd747a5ccd2695798a26f
parent04636dc410b163c2243e66c3813dd4900a50a4ed
libqos: Convert malloc-pc allocator to a generic allocator

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í <marc.mari.barcelo@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/Makefile
tests/libqos/malloc-pc.c
tests/libqos/malloc-pc.h
tests/libqos/malloc.c [copied from tests/libqos/malloc-pc.c with 63% similarity]
tests/libqos/malloc.h