qemu-patch-raspberry4/migration
zhanghailiang 4c4bad4861 ram: Split host_from_stream_offset() into two helper functions
Split host_from_stream_offset() into two parts:
One is to get ram block, which the block idstr may be get from migration
stream, the other is to get hva (host) address from block and the offset.
Besides, we will do the check working in a new helper offset_in_ramblock().

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Message-Id: <1452829066-9764-2-git-send-email-zhang.zhanghailiang@huawei.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
2016-02-05 19:09:50 +05:30
..
block.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
exec.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
fd.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
Makefile.objs postcopy: OS support test 2015-11-10 15:00:26 +01:00
migration.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
postcopy-ram.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
qemu-file-buf.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
qemu-file-internal.h Split struct QEMUFile out 2014-12-16 17:47:36 +05:30
qemu-file-stdio.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
qemu-file-unix.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
qemu-file.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
ram.c ram: Split host_from_stream_offset() into two helper functions 2016-02-05 19:09:50 +05:30
rdma.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
savevm.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
tcp.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
unix.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
vmstate.c migration: Clean up includes 2016-01-29 15:07:22 +00:00
xbzrle.c migration: Clean up includes 2016-01-29 15:07:22 +00:00