[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAIL
From: |
Jianjun Duan |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAILQ |
Date: |
Mon, 31 Oct 2016 10:32:34 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 10/31/2016 10:21 AM, Halil Pasic wrote:
>
>
> On 10/31/2016 06:10 PM, Jianjun Duan wrote:
>>> I think this got overly complicated. Here is a little patch on
>>>> top of your stuff which gets rid of 15 lines and IMHO simplifies
>>>> things quite a bit. What do you think?
>>>>
>>>> It is based on/inspired by Dave's proposal with the dummy stuff.
>>>>
>>>> Did not address the typos though.
>> It is unlikely the definition of QTAILQ will change, so hard-coded
>> value probably was the most simple. Now that we want to address the
>> potential changes, I think my code will deal with future changes better.
>
> Please elaborate in what way does your version deal better with future
> changes? IMHO the version with my patch applied covers all the corners
> your original code covers but it is without any doubt more concise and
> in my opinion also more straight-forward.
I don't use the internals of head and entry structures if there are
access macro around. Also I didn't use pointer type cast. I don't think
pointer cast is more straightforward.
Thanks,
Jianjun
>
> Halil
>
- [Qemu-ppc] [QEMU PATCH v9 0/3] migration: migrate QTAILQ, Jianjun Duan, 2016/10/27
- [Qemu-ppc] [QEMU PATCH v9 1/3] migration: extend VMStateInfo, Jianjun Duan, 2016/10/27
- [Qemu-ppc] [QEMU PATCH v9 3/3] tests/migration: Add test for QTAILQ migration, Jianjun Duan, 2016/10/27
- [Qemu-ppc] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Jianjun Duan, 2016/10/27
- Re: [Qemu-ppc] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Dr. David Alan Gilbert, 2016/10/28
- Re: [Qemu-ppc] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Jianjun Duan, 2016/10/28
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Halil Pasic, 2016/10/31
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Jianjun Duan, 2016/10/31
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Halil Pasic, 2016/10/31
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAILQ,
Jianjun Duan <=
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Halil Pasic, 2016/10/31
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Jianjun Duan, 2016/10/31
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Halil Pasic, 2016/10/31
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 2/3] migration: migrate QTAILQ, Jianjun Duan, 2016/10/31
Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v9 0/3] migration: migrate QTAILQ, no-reply, 2016/10/28