migration: just pass RAMBlock is enough
commit5d0980a459774a52e3f3729cee0a2562d11026d2
authorWei Yang <richardw.yang@linux.intel.com>
Thu, 18 Jul 2019 01:25:47 +0000 (18 09:25 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 14 Aug 2019 16:33:14 +0000 (14 17:33 +0100)
tree2524b91e52252804c8287a548f97d052385edada
parent6a88eb2b0881c1137b1647147a37de9e818142d8
migration: just pass RAMBlock is enough

RAMBlock->used_length is always passed to migration_bitmap_sync_range(),
which could be retrieved from RAMBlock.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20190718012547.16373-1-richardw.yang@linux.intel.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c