hw/intc/arm_gicv3_its: Revert version increments in vmstate_its
PATCH 1/1 hw/intc/arm_gicv3_its: Revert version increments in vmstate_its
Commit 18f6290a6a ("hw/intc: GICv3 ITS initial framework") incremented version_id and minimum_version_id fields of VMStateDescription vmstate_its. This breaks the migration between 6.2 and 6.1 with the following message:
qemu-system-aarch64: savevm: unsupported version 1 for 'arm_gicv3_its' v0
qemu-system-aarch64: load of migration failed: Invalid argument
Revert that change.
--- hw/intc/arm_gicv3_its_common.c | 2 -- 1 file changed, 2 deletions(-)
hw/intc/arm_gicv3_its_common.c +0 -2
@@ -50,8 +50,6 @@ static int gicv3_its_post_load(void *opaque, int version_id)static const VMStateDescription vmstate_its = { .name ="arm_gicv3_its" , - .version_id =1 , - .minimum_version_id =1 , .pre_save = gicv3_its_pre_save, .post_load = gicv3_its_post_load, .priority =MIG_PRI_GICV3_ITS ,
Signature · 1 line
2.26.3
Quoted 21 lines · Eric Auger
Commit
18f6290a6a("hw/intc: GICv3 ITS initial framework") incrementedversion_idandminimum_version_idfields of VMStateDescriptionvmstate_its. This breaks the migration between 6.2 and 6.1 with the following message:qemu-system-aarch64: savevm: unsupported version 1 for '
arm_gicv3_its' v0
qemu-system-aarch64: load of migration failed: Invalid argumentRevert that change.
Signed-off-by Eric Auger <[email protected]>--- hw/intc/arm_gicv3_its_common.c | 2 -- 1 file changed, 2 deletions(-)hw/intc/arm_gicv3_its_common.c +0
-0
hw/intc/arm_gicv3_its_common.c static int gicv3_its_post_load(void *opaque, int version_id) · line 55
Quoted 8 lines
hw/intc/arm_gicv3_its_common.c +0
-2@@ -50,8 +50,6 @@ static int gicv3_its_post_load(void *opaque, int version_id)static const VMStateDescription vmstate_its = { .name ="arm_gicv3_its" , - .version_id =1 , - .minimum_version_id =1 , .pre_save = gicv3_its_pre_save, .post_load = gicv3_its_post_load, .priority =MIG_PRI_GICV3_ITS ,
Oops, I didn't notice that the version bump lines were still in the patchset I applied :-(
-- PMM
Hi Peter,
Quoted 22 lines · Peter Maydell
Quoted 21 lines · Eric Auger
Commit
18f6290a6a("hw/intc: GICv3 ITS initial framework") incrementedversion_idandminimum_version_idfields of VMStateDescriptionvmstate_its. This breaks the migration between 6.2 and 6.1 with the following message:qemu-system-aarch64: savevm: unsupported version 1 for '
arm_gicv3_its' v0
qemu-system-aarch64: load of migration failed: Invalid argumentRevert that change.
Signed-off-by Eric Auger <[email protected]>--- hw/intc/arm_gicv3_its_common.c | 2 -- 1 file changed, 2 deletions(-)hw/intc/arm_gicv3_its_common.c +0
-0@@ -50,8 +50,6 @@ static int gicv3_its_post_load(void *opaque, int version_id)
Quoted 9 lines
hw/intc/arm_gicv3_its_common.c static int gicv3_its_post_load(void *opaque, int version_id) · line 55
Quoted 7 lines
hw/intc/arm_gicv3_its_common.c +0
-2static const VMStateDescription vmstate_its = { .name ="arm_gicv3_its" , - .version_id =1 , - .minimum_version_id =1 , .pre_save = gicv3_its_pre_save, .post_load = gicv3_its_post_load, .priority =MIG_PRI_GICV3_ITS ,Oops, I didn't notice that the version bump lines were still in the patchset I applied :-(
No problem. I did not notice either ;-)
Thanks!
Eric
Quoted 5 lines
Reviewed-by Peter Maydell <[email protected]>-- PMM