diff options
author | Dr. David Alan Gilbert | 2015-11-05 19:10:39 +0100 |
---|---|---|
committer | Juan Quintela | 2015-11-10 14:51:49 +0100 |
commit | a776aa15a7e3e08964c6c537314b9590dde27b4d (patch) | |
tree | ea702a9603f3c9de9d1b09bb2cefad43467234e1 /include/qemu/typedefs.h | |
parent | ram_debug_dump_bitmap: Dump a migration bitmap as text (diff) | |
download | qemu-a776aa15a7e3e08964c6c537314b9590dde27b4d.tar.gz qemu-a776aa15a7e3e08964c6c537314b9590dde27b4d.tar.xz qemu-a776aa15a7e3e08964c6c537314b9590dde27b4d.zip |
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>
Diffstat (limited to 'include/qemu/typedefs.h')
0 files changed, 0 insertions, 0 deletions