[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities
From: |
Alexander Graf |
Subject: |
Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities |
Date: |
Mon, 26 Aug 2013 10:43:13 +0200 |
Am 26.08.2013 um 08:22 schrieb Benjamin Herrenschmidt <address@hidden>:
> On Mon, 2013-08-26 at 06:44 +0100, Alexander Graf wrote:
>>> + cap.flags = 0;
>>> + cap.migration.ecl = 0;
>>> + cap.reserve.type = 0;
>>> + cap.migration.common.server_support = 0;
>>> + cap.reserve.common.server_support = 0;
>>
>> My question stands unanswered. Is this just memset(0)?
>
> If it is, then why bother reading it in the first place ? :-)
Because this is a revision that incorporates other feedback from that same
review, so I'm quite sure he just missed it :)
>
> Note that even if it is, I'd rather keep it that way as we are
> eventually going to populate some stuff and so we have just the
> placeholders to do it.
Do we ever need to preserve random fields in that struct? Or would it be
clearer to just set the whole thing to 0 and then go from there?
It's definitely a case-by-case decision which way is better, but setting all
fields by hand gives you potential for missing to set one.
Alex
>
> Cheers,
> Ben.
>
>
- [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Alexey Kardashevskiy, 2013/08/23
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Alexander Graf, 2013/08/25
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Benjamin Herrenschmidt, 2013/08/25
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Nikunj A Dadhania, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Alexander Graf, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Benjamin Herrenschmidt, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities,
Alexander Graf <=
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Nikunj A Dadhania, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Alexander Graf, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Benjamin Herrenschmidt, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Nikunj A Dadhania, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Nikunj A Dadhania, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Alexander Graf, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Nikunj A Dadhania, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Alexander Graf, 2013/08/26
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Nikunj A Dadhania, 2013/08/27
- Re: [Qemu-ppc] [PATCH] spapr-vscsi: Adding VSCSI capabilities, Nikunj A Dadhania, 2013/08/27