]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Document qemuMigrationParamsFlagMapItem fields
authorJiri Denemark <jdenemar@redhat.com>
Mon, 8 Jan 2024 14:08:05 +0000 (15:08 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 8 Jan 2024 21:38:24 +0000 (22:38 +0100)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_migration_params.c

index 79fe6e97c80104342e0caeba3887af83df9097e5..9de6c080214a4455d85e184a645fe22e2d211c8e 100644 (file)
@@ -131,10 +131,20 @@ struct _qemuMigrationParamsAlwaysOnItem {
 
 typedef struct _qemuMigrationParamsFlagMapItem qemuMigrationParamsFlagMapItem;
 struct _qemuMigrationParamsFlagMapItem {
+    /* Describes what to do with the capability if @flag is found.
+     * When se to QEMU_MIGRATION_FLAG_REQUIRED, the capability will be
+     * enabled iff the specified migration flag is enabled. On the other hand
+     * QEMU_MIGRATION_FLAG_FORBIDDEN will enable the capability as long as
+     * the specified migration flag is not enabled. */
     qemuMigrationFlagMatch match;
+    /* Migration flag to check. */
     virDomainMigrateFlags flag;
+    /* Migration capability to be enabled or disabled based on the flag. */
     qemuMigrationCapability cap;
-    int party; /* bit-wise OR of qemuMigrationParty */
+    /* Bit-wise OR of qemuMigrationParty. Determines whether the capability has
+     * to be enabled on the source, on the destination, or on both sides of
+     * migration. */
+    int party;
 };
 
 typedef struct _qemuMigrationParamsTPMapItem qemuMigrationParamsTPMapItem;