qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v10 2/3] migration: migrate QTAI


From: Halil Pasic
Subject: Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v10 2/3] migration: migrate QTAILQ
Date: Thu, 3 Nov 2016 12:32:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0


On 11/03/2016 12:14 PM, Halil Pasic wrote:
> 
> 
> On 11/02/2016 05:38 PM, Paolo Bonzini wrote:
>>
>>
>> On 02/11/2016 11:45, Juan Quintela wrote:
>>>>> +    while (qemu_get_byte(f)) {
>>>>> +        elm = g_malloc(size);
>>> I think this is not generic enough.  We really need to allocate a new
>>> element, and then fill it with default values.
>>>
>>> virtio list code use it in this way.
>>
>> One thing at a time?  The allocation and "looping" are different
>> mechanisms.  We can customize the allocation later.
>>
>> Paolo
>>
> 

[..]

> 
> And while at it how about s/g_malloc/gmalloc0? This would possibly make
> something like mismatch in .start between source and target easier to
> detect

Sorry guys, I just realized this was stupid of me. Please ignore.




reply via email to

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