From: Juan Quintela Date: Wed, 8 Feb 2023 13:34:24 +0000 (+0100) Subject: migration: In case of postcopy, the memory ends in res_postcopy_only X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=abbbd04da2b2bdda5ee7dcbbbc89e03e019ade6b;p=qemu.git migration: In case of postcopy, the memory ends in res_postcopy_only So remove last assignation of res_compatible. Reviewed-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Juan Quintela --- diff --git a/migration/ram.c b/migration/ram.c index 521912385d..ecf697a58d 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -3528,7 +3528,7 @@ static void ram_state_pending_exact(void *opaque, if (migrate_postcopy_ram()) { /* We can do postcopy, and all the data is postcopiable */ - *res_compatible += remaining_size; + *res_postcopy_only += remaining_size; } else { *res_precopy_only += remaining_size; }