migration: In case of postcopy, the memory ends in res_postcopy_only
authorJuan Quintela <quintela@redhat.com>
Wed, 8 Feb 2023 13:34:24 +0000 (14:34 +0100)
committerJuan Quintela <quintela@redhat.com>
Wed, 15 Feb 2023 19:04:30 +0000 (20:04 +0100)
So remove last assignation of res_compatible.

Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c

index 521912385dfa3d8fd1e77aa0d5b3b08597dfd369..ecf697a58d6397e98defc82fdbc7562eff771d17 100644 (file)
@@ -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;
     }