]> git.proxmox.com Git - mirror_qemu.git/commit
migration/ram: Simplify host page handling in ram_load_postcopy()
authorDavid Hildenbrand <david@redhat.com>
Thu, 29 Apr 2021 11:27:05 +0000 (13:27 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 13 May 2021 17:21:13 +0000 (18:21 +0100)
commit6a23f6399a1f8807447f8680f80e4d536522683e
tree033b8a712c637d071a8c7cd0e07bf24bb75cdb3d
parentcc61c703b6a8b9dfdfb92d5f3fa1961f6d232926
migration/ram: Simplify host page handling in ram_load_postcopy()

Add two new helper functions. This will come in come handy once we want to
handle ram block resizes while postcopy is active.

Note that ram_block_from_stream() will already print proper errors.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210429112708.12291-8-david@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  dgilbert: Added brackets in host_page_from_ram_block_offset
     to cause uintptr_t to cast the sum, to fix armhf-cross build
migration/ram.c