]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Rename remoteCaps parameter in qemuMigrationParamsCheck
authorJiri Denemark <jdenemar@redhat.com>
Mon, 8 Jan 2024 14:58:09 +0000 (15:58 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 8 Jan 2024 21:38:53 +0000 (22:38 +0100)
The migration cookie contains two bitmaps of migration capabilities:
supported and automatic. qemuMigrationParamsCheck expects the letter so
lets make it more obvious by renaming the parameter as remoteAuto.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_migration_params.c
src/qemu/qemu_migration_params.h

index b02a8af8d5abbf9b670ea7ce03c72c95b63583db..f441c59d6734491ec5a99f7a3786cafbbdd88d32 100644 (file)
@@ -1290,7 +1290,7 @@ int
 qemuMigrationParamsCheck(virDomainObj *vm,
                          int asyncJob,
                          qemuMigrationParams *migParams,
-                         virBitmap *remoteCaps)
+                         virBitmap *remoteAuto)
 {
     qemuDomainJobPrivate *jobPriv = vm->job->privateData;
     qemuMigrationCapability cap;
@@ -1323,8 +1323,8 @@ qemuMigrationParamsCheck(virDomainObj *vm,
             if (qemuMigrationParamsAlwaysOn[i].party != party) {
                 bool remote = false;
 
-                if (remoteCaps)
-                    ignore_value(virBitmapGetBit(remoteCaps, cap, &remote));
+                if (remoteAuto)
+                    ignore_value(virBitmapGetBit(remoteAuto, cap, &remote));
 
                 if (!remote) {
                     VIR_DEBUG("Not enabling migration capability '%s'; it is "
index 5857673227958980259768f7f1909503e0de2e7f..44f5c2a882bbca5f2a8523a079704c4dff506c36 100644 (file)
@@ -142,7 +142,7 @@ int
 qemuMigrationParamsCheck(virDomainObj *vm,
                          int asyncJob,
                          qemuMigrationParams *migParams,
-                         virBitmap *remoteCaps);
+                         virBitmap *remoteAuto);
 
 void
 qemuMigrationParamsReset(virDomainObj *vm,