]> git.proxmox.com Git - mirror_qemu.git/commit
migration/multifd: use pages->allocated instead of the static max
authorWei Yang <richardw.yang@linux.intel.com>
Fri, 11 Oct 2019 08:50:48 +0000 (16:50 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 11 Oct 2019 14:01:54 +0000 (15:01 +0100)
commitf2148c4c793f67e24ff97ddf12c8eeccdba9fb8e
tree866b496e9ed61cc67984763b95ab80f6ee211b40
parentd884e77bfe384000a56ea13f448df314add84889
migration/multifd: use pages->allocated instead of the static max

multifd_send_fill_packet() prepares meta data for following pages to
transfer. It would be more proper to fill pages->allocated instead of
static max value, especially we want to support flexible packet size.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20191011085050.17622-3-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