From nobody Sat Feb 7 08:53:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1655992748; cv=none; d=zohomail.com; s=zohoarc; b=aDjnB7FO/Pbx8cOhtP0EsGKF0U8Ku7QzpRJ2Qs322aXhCmSP5eT/KDXm6r5fZbk5Jhxj1RJjOZQcrTWyCVg2l6zKBXjGf9vrVwU95FvFdqQlYCrUlv0baPhlDjGMo5y6vUg+pWzI/DrrMowd3Nd7ONQsbdq0vOG9crFjj3it7h8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655992748; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ZjSTLWwCvnGbQ3szddDpNHiiLVqfYvmm80MiAUXx49o=; b=EDmui7RoBzaHxhXe0RGz4A7l/LjupLH3fcpbzZQAGjqHH1Ey3Ry4cZykqlG1+4Bjz9/Zz1fX1hbh+g1NNxzIdu5reqjfzOuX8q4oNHIj4fBj+nGRag+fQ56lu7SSV3SfCpeIsLEqrKnN/l57wVFf5VQx44rGUOhOcac2FyRWWXo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1655992748241718.8580483714686; Thu, 23 Jun 2022 06:59:08 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-16-wjDoThC4Mkqf6XDsUNJhNw-1; Thu, 23 Jun 2022 09:58:32 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 10A7C185A7B2; Thu, 23 Jun 2022 13:58:29 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id F1E871121314; Thu, 23 Jun 2022 13:58:28 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 3DBA0194B95F; Thu, 23 Jun 2022 13:58:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7CA3B194B971 for ; Thu, 23 Jun 2022 13:58:16 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 5B5E11121315; Thu, 23 Jun 2022 13:58:16 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.43.2.227]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3C1161121314 for ; Thu, 23 Jun 2022 13:58:16 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id 1D25F241E41; Thu, 23 Jun 2022 15:58:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655992747; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ZjSTLWwCvnGbQ3szddDpNHiiLVqfYvmm80MiAUXx49o=; b=CSGksyFAHL/RsE6gZzGEOO4XE0EVpzdytEe4Wilo8L1+FpFbs8TpZhIp2LgqmjYgFZHAHU BtzuSgURTLAMAUpDY6dXfQVocTaUp/GhC+W03/IgdGdezrvMv9k2uhcbNId4fSdI/CXfpV Xty53EXx55/K2uzHOwHu0Lt3olk7UtI= X-MC-Unique: wjDoThC4Mkqf6XDsUNJhNw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Jiri Denemark To: libvir-list@redhat.com Subject: [libvirt PATCH 5/7] Add VIR_MIGRATE_ZEROCOPY flag Date: Thu, 23 Jun 2022 15:58:10 +0200 Message-Id: <13a7829f7a64b8ee9ea6d9fec9dd567894fb7fc0.1655992592.git.jdenemar@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1655992748489100001 Content-Type: text/plain; charset="utf-8" The flag can be used to enable zero-copy mechanism for migrating memory pages. Signed-off-by: Jiri Denemark --- include/libvirt/libvirt-domain.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-dom= ain.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 =3D (1 << 19), + + /* Use zero-copy mechanism for migrating memory pages. For QEMU/KVM th= is + * means QEMU will be temporarily allowed to lock all guest pages in h= ost's + * memory, although only those that are queued for transfer will be lo= cked + * at the same time. + * + * Since: 8.5.0 + */ + VIR_MIGRATE_ZEROCOPY =3D (1 << 20), } virDomainMigrateFlags; =20 =20 --=20 2.35.1