[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive)
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [Qemu-devel] [PATCH v2 000/124] VMState Simplification (Massive) |
Date: |
Tue, 22 Apr 2014 12:39:48 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
* Paolo Bonzini (address@hidden) wrote:
> Il 21/04/2014 13:34, Peter Maydell ha scritto:
> >Mostly just that I think that for vmstate definitions "this new field
> >was added in version X" is natural and normal, whereas other
> >test functions are odd and generally the exception. So a simple
> >way to indicate minimum version for fields seems useful to retain.
> >I don't mind if you want to unify the underlying implementation,
> >but I would prefer to retain the _V macros for vmstate definitions
> >to use (and it has the additional advantage of avoiding the need for
> >touching lots of devices...)
>
> 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.
Dave
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK
- [Qemu-devel] [PATCH 123/124] vmstate: Test for VMSTATE_ARRAY_OF_POINTER_TO_STRUCT, (continued)
- [Qemu-devel] [PATCH 123/124] vmstate: Test for VMSTATE_ARRAY_OF_POINTER_TO_STRUCT, Juan Quintela, 2014/04/21
- [Qemu-devel] [PATCH 124/124] vmstate: Test for VMSTATE_ARRAY_OF_POINTER, Juan Quintela, 2014/04/21
- [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 <=
- 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, 2014/04/27
- 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