migration/ram: Refactor precopy ram loading code
commit2f5ced5b93720218509fbf7278b5c651d3bbd806
authorNikolay Borisov <nborisov@suse.com>
Wed, 11 Oct 2023 18:45:59 +0000 (11 15:45 -0300)
committerJuan Quintela <quintela@redhat.com>
Tue, 17 Oct 2023 07:25:14 +0000 (17 09:25 +0200)
treed35904110cf7b66fac351ec5215587b017a7ed28
parent1618f5522145b3cab4d9eb154b921417b577dc2c
migration/ram: Refactor precopy ram loading code

Extract the ramblock parsing code into a routine that operates on the
sequence of headers from the stream and another the parses the
individual ramblock. This makes ram_load_precopy() easier to
comprehend.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231011184604.32364-3-farosas@suse.de>
migration/ram.c