aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2024-09-19 14:46:20 +0100
committerPeter Xu <peterx@redhat.com>2024-10-08 15:28:55 -0400
commita5d8d1384224252b122cb23e3bc141dcd29d41c2 (patch)
tree835e9e4873ff4e8a2d10eff4c2d4667adb6df72d /migration
parent68e0fca625912c7c63a8bfbc784f53d4fefa1a13 (diff)
downloadqemu-a5d8d1384224252b122cb23e3bc141dcd29d41c2.zip
qemu-a5d8d1384224252b122cb23e3bc141dcd29d41c2.tar.gz
qemu-a5d8d1384224252b122cb23e3bc141dcd29d41c2.tar.bz2
migration: Remove migrate_cap_set
migrate_cap_set has been unused since 18d154f575 ("migration: Remove 'blk/-b' option from migrate commands") Remove it. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org> Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20240919134626.166183-2-dave@treblig.org Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/options.c20
-rw-r--r--migration/options.h1
2 files changed, 0 insertions, 21 deletions
diff --git a/migration/options.c b/migration/options.c
index 147cd2b..9460c5d 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -605,26 +605,6 @@ bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp)
return true;
}
-bool migrate_cap_set(int cap, bool value, Error **errp)
-{
- MigrationState *s = migrate_get_current();
- bool new_caps[MIGRATION_CAPABILITY__MAX];
-
- if (migration_is_running()) {
- error_setg(errp, "There's a migration process in progress");
- return false;
- }
-
- memcpy(new_caps, s->capabilities, sizeof(new_caps));
- new_caps[cap] = value;
-
- if (!migrate_caps_check(s->capabilities, new_caps, errp)) {
- return false;
- }
- s->capabilities[cap] = value;
- return true;
-}
-
MigrationCapabilityStatusList *qmp_query_migrate_capabilities(Error **errp)
{
MigrationCapabilityStatusList *head = NULL, **tail = &head;
diff --git a/migration/options.h b/migration/options.h
index a0bd6ed..36e7b37 100644
--- a/migration/options.h
+++ b/migration/options.h
@@ -58,7 +58,6 @@ bool migrate_tls(void);
/* capabilities helpers */
bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp);
-bool migrate_cap_set(int cap, bool value, Error **errp);
/* parameters */