]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Change SaveStateEntry.instance_id into uint32_t
authorPeter Xu <peterx@redhat.com>
Wed, 16 Oct 2019 02:29:31 +0000 (10:29 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 20 Jan 2020 08:10:23 +0000 (09:10 +0100)
commit93062e23619e057743757ee53bf7f8e07f7a3710
tree2752391fd9ee253d28a9c5f921a50b94ada4aee6
parent1df2c9a26fcb2fa32d099f8e9adcdae4207872e3
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>
hw/intc/apic_common.c
include/migration/register.h
include/migration/vmstate.h
migration/savevm.c
stubs/vmstate.c