mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
savevm: Remove all the unneeded version_minimum_id_old (x86)
After previous Peter patch, they are redundant. This way we don't assign them except when needed. Once there, there were lots of case where the ".fields" indentation was wrong: .fields = (VMStateField []) { and .fields = (VMStateField []) { Change all the combinations to: .fields = (VMStateField[]){ The biggest problem (appart from aesthetics) was that checkpatch complained when we copy&pasted the code from one place to another. Signed-off-by: Juan Quintela <quintela@redhat.com> Acked-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
3aff6c2fea
commit
d49805aeea
65 changed files with 113 additions and 219 deletions
|
@ -379,18 +379,18 @@ static const VMStateDescription vmstate_i6300esb = {
|
|||
* version_id to be set for every build. This eventually broke
|
||||
* migration.
|
||||
*
|
||||
* To correct this without breaking old->new migration for older versions
|
||||
* of QEMU, we've set version_id to a value high enough to exceed all past
|
||||
* values of sizeof(I6300State) across various build environments, and have
|
||||
* reset minimum_version_id_old/minimum_version_id to 1, since this VMSD
|
||||
* has never changed and thus can accept all past versions.
|
||||
* To correct this without breaking old->new migration for older
|
||||
* versions of QEMU, we've set version_id to a value high enough
|
||||
* to exceed all past values of sizeof(I6300State) across various
|
||||
* build environments, and have reset minimum_version_id to 1,
|
||||
* since this VMSD has never changed and thus can accept all past
|
||||
* versions.
|
||||
*
|
||||
* For future changes we can treat these values as we normally would.
|
||||
*/
|
||||
.version_id = 10000,
|
||||
.minimum_version_id = 1,
|
||||
.minimum_version_id_old = 1,
|
||||
.fields = (VMStateField []) {
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_PCI_DEVICE(dev, I6300State),
|
||||
VMSTATE_INT32(reboot_enabled, I6300State),
|
||||
VMSTATE_INT32(clock_scale, I6300State),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue