qemu/migration
Dr. David Alan Gilbert a776aa15a7 ram_load: Factor out host_from_stream_offset call and check
The main RAM load loop has a call to host_from_stream_offset for
each page type that actually loads data with the same test;
factor it out before the switch.

The host = NULL is to silence a bogus gcc warning of
an unitialised in the RAM_SAVE_COMPRESS_PAGE case, it
doesn't seem to realise that host is always initialised by the if at
the top in the cases the switch takes.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2015-11-10 14:51:49 +01:00
..
block.c migration: code clean up 2015-11-04 13:40:13 +01:00
exec.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
fd.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
Makefile.objs Split the QEMU buffered file code out 2014-12-16 17:47:36 +05:30
migration.c Rename mis->file to from_src_file 2015-11-10 14:51:48 +01:00
qemu-file-buf.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
qemu-file-internal.h Split struct QEMUFile out 2014-12-16 17:47:36 +05:30
qemu-file-stdio.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
qemu-file-unix.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
qemu-file.c Add wrapper for setting blocking status on a QEMUFile 2015-11-10 14:51:48 +01:00
ram.c ram_load: Factor out host_from_stream_offset call and check 2015-11-10 14:51:49 +01:00
rdma.c coroutine: move into libqemuutil.a library 2015-10-20 14:59:04 +01:00
savevm.c Move configuration section writing 2015-11-10 14:51:48 +01:00
tcp.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
unix.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
vmstate.c vmstate: Create optional sections 2015-07-07 14:54:52 +02:00
xbzrle.c Start migrating migration code into a migration directory 2014-12-16 17:47:36 +05:30