Re: [Qemu-devel] [PATCH] libqos: Convert malloc-pc allocator to a generic allocator

2014-10-24 Thread John Snow
On 10/24/2014 05:00 AM, Marc Marí wrote: El Thu, 23 Oct 2014 18:49:03 -0400 John Snow escribió: Reviewed-by: John Snow Did you mean this for the v2, which has the extra free? Marc Yes. No more late-night replies to patches :\

Re: [Qemu-devel] [PATCH] libqos: Convert malloc-pc allocator to a generic allocator

2014-10-24 Thread Marc Marí
El Thu, 23 Oct 2014 18:49:03 -0400 John Snow escribió: > Reviewed-by: John Snow Did you mean this for the v2, which has the extra free? Marc

Re: [Qemu-devel] [PATCH] libqos: Convert malloc-pc allocator to a generic allocator

2014-10-23 Thread John Snow
On 10/18/2014 05:24 AM, 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

Re: [Qemu-devel] [PATCH] libqos: Convert malloc-pc allocator to a generic allocator

2014-10-22 Thread Marc Marí
> > +void alloc_uninit(QGuestAllocator *allocator) > > +{ > > +MemBlock *node; > > +MemBlock *tmp; > > +QAllocOpts mask; > > + > > +/* Check for guest leaks, and destroy the list. */ > > +QTAILQ_FOREACH_SAFE(node, &allocator->used, MLIST_ENTNAME, > > tmp) { > > +if (allo

Re: [Qemu-devel] [PATCH] libqos: Convert malloc-pc allocator to a generic allocator

2014-10-22 Thread John Snow
On 10/18/2014 05:24 AM, 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

Re: [Qemu-devel] [PATCH] libqos: Convert malloc-pc allocator to a generic allocator

2014-10-22 Thread Stefan Hajnoczi
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 funct

[Qemu-devel] [PATCH] libqos: Convert malloc-pc allocator to a generic allocator

2014-10-18 Thread Marc Marí
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 all