Add VIR_MIGRATE_ZEROCOPY flag

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>
This commit is contained in:
Jiri Denemark 2022-06-22 16:35:50 +02:00
parent f01fc4d119
commit 8744beecb3

View 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;