qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 4/5] tests/libqos: embed allocators instead of m


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 4/5] tests/libqos: embed allocators instead of malloc-ing them separately
Date: Fri, 18 Jan 2019 13:59:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1

On 18/01/19 13:52, Thomas Huth wrote:
> 
>> +                uint64_t start, uint64_t end,
>> +                size_t page_size)
>>  {
>> -    QGuestAllocator *s = g_malloc0(sizeof(*s));
>>      MemBlock *node;
>>  
>>      s->start = start;
>> @@ -313,26 +301,7 @@ QGuestAllocator *alloc_init(uint64_t start, uint64_t 
>> end)
>>      node = mlist_new(s->start, s->end - s->start);
>>      QTAILQ_INSERT_HEAD(s->free, node, MLIST_ENTNAME);
>>  
>> -    s->page_size = DEFAULT_PAGE_SIZE;
>> -
>> -    return s;
>> -}
>> -
>> -QGuestAllocator *alloc_init_flags(QAllocOpts opts,
>> -                                  uint64_t start, uint64_t end)
>> -{
>> -    QGuestAllocator *s = alloc_init(start, end);
>> -    s->opts = opts;
> i.e. keep this line ^ ?
> 

I'll add the line back.  It's used by the legacy QOSOps.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]