migration/multifd: initialize packet->magic/version once at setup stage
commit9985e1f48db7449421dafdc22d275551072f0a06
authorWei Yang <richardw.yang@linux.intel.com>
Fri, 11 Oct 2019 08:50:49 +0000 (11 16:50 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 11 Oct 2019 14:02:00 +0000 (11 15:02 +0100)
tree71df476d1b132acf75fe32ef565d1720a9b47929
parentf2148c4c793f67e24ff97ddf12c8eeccdba9fb8e
migration/multifd: initialize packet->magic/version once at setup stage

MultiFDPacket_t's magic and version field never changes during
migration, so move these two fields in setup stage.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20191011085050.17622-4-richardw.yang@linux.intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c