[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive)
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive) |
Date: |
Sun, 27 Apr 2014 14:19:47 +0300 |
On Sun, Apr 27, 2014 at 10:26:30AM +0200, Paolo Bonzini wrote:
> Il 22/04/2014 13:39, Dr. David Alan Gilbert ha scritto:
> >>>
> >>> I agree. In many cases, _TEST is a huge review warning sign that
> >>> subsections should have been used instead.
> >I can see how the subsections should be used in some cases, but I've
> >come across at least one case where _TEST was used to avoid the need
> >for a version change.
> >
> >Mst's 9e047b (hw/acpi/piix4.c) replaces an existing field, if a property
> >on the device is set, but if the property is as-before then the structure
> >stays exactly as it was.
> >I can see how that probably should have used a subsection for the new
> >version of the data, but I don't see how it could have otherwise kept
> >it's compatibility.
>
> Was there really any need to remove the existing field? Could you
> simply have its contents (probably all zeroes) streamed anyway?
>
> (Reminds me of "#define union struct /* Wastes some memory */" :)).
>
> Paolo
Sure, we could do this, I just didn't see the advantage of that
and it seemed cleaner.
--
MST
- [Qemu-devel] [PATCH 114/124] vmstate: Remove unused VMSTATE_STRUCT_POINTER_TEST, (continued)
- [Qemu-devel] [PATCH 114/124] vmstate: Remove unused VMSTATE_STRUCT_POINTER_TEST, Juan Quintela, 2014/04/21
- [Qemu-devel] [PATCH 110/124] vmstate: Test for VMSTATE_VARRAY_INT32, Juan Quintela, 2014/04/21
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive), Peter Maydell, 2014/04/21
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive), Juan Quintela, 2014/04/21
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive), Peter Maydell, 2014/04/21
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive), Juan Quintela, 2014/04/21
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive), Peter Maydell, 2014/04/21
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive), Paolo Bonzini, 2014/04/21
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive), Dr. David Alan Gilbert, 2014/04/22
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive), Paolo Bonzini, 2014/04/27
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive),
Michael S. Tsirkin <=
- Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive), Juan Quintela, 2014/04/21
[Qemu-devel] [PATCH 115/124] vmstate: Test for VMSTATE_STRUCT_POINTER, Juan Quintela, 2014/04/21
[Qemu-devel] [PATCH 071/124] vmstate: Remove version field from VMSTATE_STRUCT_VARRAY_UINT32, Juan Quintela, 2014/04/21
[Qemu-devel] [PATCH 116/124] vmstate: Test VMSTATE_STRUCT_ARRAY, Juan Quintela, 2014/04/21