Re: [Qemu-devel] [RFC PATCH 3/4] savevm: define new unambiguous migration format

2011-07-29 Thread Anthony Liguori
On 06/30/2011 10:46 AM, Paolo Bonzini wrote: With the current migration format, VMS_STRUCTs with subsections are ambiguous. The protocol cannot tell whether a 0x5 byte after the VMS_STRUCT is a subsection or part of the parent data stream. In the past QEMU assumed it was always a part of a

Re: [Qemu-devel] [RFC PATCH 3/4] savevm: define new unambiguous migration format

2011-07-29 Thread Paolo Bonzini
On 07/29/2011 03:12 PM, Anthony Liguori wrote: Please introduce a macro so this code is readable. Ok. We have other machines that support migration in other archs too. Those machine types are not versioned, so they will automatically switch to the newest version. Paolo

[Qemu-devel] [RFC PATCH 3/4] savevm: define new unambiguous migration format

2011-06-30 Thread Paolo Bonzini
With the current migration format, VMS_STRUCTs with subsections are ambiguous. The protocol cannot tell whether a 0x5 byte after the VMS_STRUCT is a subsection or part of the parent data stream. In the past QEMU assumed it was always a part of a subsection; after commit eb60260 (savevm: fix