David Hildenbrand 6a23f6399a 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
2021-05-13 18:21:13 +01:00
..
2021-01-08 15:13:38 +00:00
2018-07-10 12:48:53 +01:00
2020-10-26 16:15:04 +00:00
2021-02-08 11:19:51 +00:00
2020-11-15 16:43:28 +01:00
2020-11-15 16:43:28 +01:00
2017-05-18 18:04:54 +02:00
2017-05-18 18:04:54 +02:00