Re: [PATCH v2 2/4] migration: Change SaveStateEntry.instance_id into uint32_t

2019-10-16 Thread Juan Quintela
Peter Xu wrote: > 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 Quint

[PATCH v2 2/4] migration: Change SaveStateEntry.instance_id into uint32_t

2019-10-15 Thread Peter Xu
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 Signed-off-by: Peter Xu