]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add VIR_MIGRATE_ZEROCOPY flag
authorJiri Denemark <jdenemar@redhat.com>
Wed, 22 Jun 2022 14:35:50 +0000 (16:35 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 23 Jun 2022 14:45:39 +0000 (16:45 +0200)
The flag can be used to enable zero-copy mechanism for migrating memory
pages.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
include/libvirt/libvirt-domain.h

index 1ea3284e63ed6e7a5ec756b459006224b61b2b4b..05344aaa95fad4fd3d60e5f2a54dd0db7835e867 100644 (file)
@@ -1089,6 +1089,15 @@ typedef enum {
      * Since: 8.5.0
      */
     VIR_MIGRATE_POSTCOPY_RESUME = (1 << 19),
+
+    /* Use zero-copy mechanism for migrating memory pages. For QEMU/KVM this
+     * means QEMU will be temporarily allowed to lock all guest pages in host's
+     * memory, although only those that are queued for transfer will be locked
+     * at the same time.
+     *
+     * Since: 8.5.0
+     */
+    VIR_MIGRATE_ZEROCOPY = (1 << 20),
 } virDomainMigrateFlags;