aboutsummaryrefslogtreecommitdiff
path: root/migration/block.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-02-08 14:48:02 +0100
committerJuan Quintela <quintela@redhat.com>2023-02-15 20:04:30 +0100
commit24beea4efe6e6b65fd6248ede936cd3278b2bf8a (patch)
tree99a685728d19d3c8f8ff42f2096b20dcf5faf845 /migration/block.c
parent24f254ed794bbd217fbceb6b5840dd4fa6545383 (diff)
downloadqemu-24beea4efe6e6b65fd6248ede936cd3278b2bf8a.zip
qemu-24beea4efe6e6b65fd6248ede936cd3278b2bf8a.tar.gz
qemu-24beea4efe6e6b65fd6248ede936cd3278b2bf8a.tar.bz2
migration: Rename res_{postcopy,precopy}_only
Once that res_compatible is removed, they don't make sense anymore. We remove the _only preffix. And to make things clearer we rename them to must_precopy and can_postcopy. Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/block.c')
-rw-r--r--migration/block.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/migration/block.c b/migration/block.c
index 168ef89..426a25b 100644
--- a/migration/block.c
+++ b/migration/block.c
@@ -853,9 +853,8 @@ static int block_save_complete(QEMUFile *f, void *opaque)
return 0;
}
-static void block_state_pending(void *opaque,
- uint64_t *res_precopy_only,
- uint64_t *res_postcopy_only)
+static void block_state_pending(void *opaque, uint64_t *must_precopy,
+ uint64_t *can_postcopy)
{
/* Estimate pending number of bytes to send */
uint64_t pending;
@@ -876,7 +875,7 @@ static void block_state_pending(void *opaque,
trace_migration_block_state_pending(pending);
/* We don't do postcopy */
- *res_precopy_only += pending;
+ *must_precopy += pending;
}
static int block_load(QEMUFile *f, void *opaque, int version_id)