From 8744beecb36600e773c8a8c4823db2bf4b3e262d Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Wed, 22 Jun 2022 16:35:50 +0200 Subject: [PATCH] Add VIR_MIGRATE_ZEROCOPY flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The flag can be used to enable zero-copy mechanism for migrating memory pages. Signed-off-by: Jiri Denemark Reviewed-by: Ján Tomko --- include/libvirt/libvirt-domain.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h index 1ea3284e63..05344aaa95 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -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;