aboutsummaryrefslogtreecommitdiff
path: root/migration/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-01 23:15:59 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-24 15:01:46 +0200
commit4d0c6b695bf5252402ebf967f83baebfd2f4b91e (patch)
tree2fdbb812e32809576d64cd42b5a05a5952fa4607 /migration/migration.c
parent77608706459bd197e25ac1ef54591b9f8a0b46f8 (diff)
downloadqemu-4d0c6b695bf5252402ebf967f83baebfd2f4b91e.zip
qemu-4d0c6b695bf5252402ebf967f83baebfd2f4b91e.tar.gz
qemu-4d0c6b695bf5252402ebf967f83baebfd2f4b91e.tar.bz2
migration: Move qmp_query_migrate_capabilities() to options.c
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Diffstat (limited to 'migration/migration.c')
-rw-r--r--migration/migration.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 431e3db..0004c16 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -886,28 +886,6 @@ void migrate_send_rp_resume_ack(MigrationIncomingState *mis, uint32_t value)
migrate_send_rp_message(mis, MIG_RP_MSG_RESUME_ACK, sizeof(buf), &buf);
}
-MigrationCapabilityStatusList *qmp_query_migrate_capabilities(Error **errp)
-{
- MigrationCapabilityStatusList *head = NULL, **tail = &head;
- MigrationCapabilityStatus *caps;
- MigrationState *s = migrate_get_current();
- int i;
-
- for (i = 0; i < MIGRATION_CAPABILITY__MAX; i++) {
-#ifndef CONFIG_LIVE_BLOCK_MIGRATION
- if (i == MIGRATION_CAPABILITY_BLOCK) {
- continue;
- }
-#endif
- caps = g_malloc0(sizeof(*caps));
- caps->capability = i;
- caps->state = s->capabilities[i];
- QAPI_LIST_APPEND(tail, caps);
- }
-
- return head;
-}
-
MigrationParameters *qmp_query_migrate_parameters(Error **errp)
{
MigrationParameters *params;