migration: Change SaveStateEntry.instance_id into uint32_t
It was always used as 32bit, so define it as used to be clear. Instead of using -1 as the auto-gen magic value, we switch to UINT32_MAX. We also make sure that we don't auto-gen this value to avoid overflowed instance IDs without being noticed. Suggested-by:Juan Quintela <quintela@redhat.com> Signed-off-by:
Peter Xu <peterx@redhat.com> Reviewed-by:
Juan Quintela <quintela@redhat.com> Signed-off-by:
Juan Quintela <quintela@redhat.com>
Showing
- hw/intc/apic_common.c 1 addition, 1 deletionhw/intc/apic_common.c
- include/migration/register.h 1 addition, 1 deletioninclude/migration/register.h
- include/migration/vmstate.h 1 addition, 1 deletioninclude/migration/vmstate.h
- migration/savevm.c 10 additions, 8 deletionsmigration/savevm.c
- stubs/vmstate.c 1 addition, 1 deletionstubs/vmstate.c
Loading
Please register or sign in to comment