From nobody Tue Sep 9 23:57:23 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1737588684; cv=none; d=zohomail.com; s=zohoarc; b=Ly6Da2FEgLYgGrCmy8cQdpIfNsMezwGLq9neyg5QxAi7qk1hUmB4jLwQtgTYWcTNmM6cq81z4KxednhkdMDKdWr0ibUpZoImSZs5zyy0kiXTBdWLqgSyGX73LaBpfJZL2b4IwczZgExCMdULCHB/kcf9Tf8JRQaSJCtXJZ1lFTE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1737588684; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id; bh=xil4gEnJfmTZzzTRxlhqQMb4MEAtMRBdDnM7TAAFSYs=; b=C+sIM3rHl+WmUGGrRlTQvhbhkQvF1R7pUYq4tlB5jJ4JQxt2EtmccKinV6jQ5zGeZvAddsc1XtVmXH/R5U60E1UhRB8XGTfOeEXbKBJXvx4ib4WEZCWLgdKTdOn0uT/aQtdYNkDFoO619xfw4QBgorMAn5EC/kp6o+Jo8TG+VAU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1737588684861355.3708266302307; Wed, 22 Jan 2025 15:31:24 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 2BC8312CD; Wed, 22 Jan 2025 18:31:24 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 2730B140F; Wed, 22 Jan 2025 18:23:34 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id E9D1B1371; Wed, 22 Jan 2025 18:23:23 -0500 (EST) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 0F69D1320 for ; Wed, 22 Jan 2025 18:23:03 -0500 (EST) Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-aaec61d0f65so70220366b.1 for ; Wed, 22 Jan 2025 15:23:02 -0800 (PST) Received: from localhost (75-169-8-111.slkc.qwest.net. [75.169.8.111]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3e1510sm100614095ad.183.2025.01.22.15.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 15:23:01 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1737588182; x=1738192982; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cNiE1uvWkLfj8s8kKaB2J6Fh7oZulWstFN8Em2IXZys=; b=Hu8+kbU3qgcYv8ul5lGUkHvwxLddMFSrZE25x90fAQd+07gofX8hAYEt1sOk7eWzPu ioAiySYywJIjANgMd4LuPW05D0NPVzzm/KIFmYV49LomFcCB4cofScBWPLQupD0tl6G2 rEJxt2JekvGIAy8pZ7cEYVPMBjwjHNKQsH5UKdVoNvSfGtuIZHhW4pEo4RfPv2+u/f5V +2dmSlSvuolSU9cbnwiNUTxg8sNKrD3c0dVf6a6xaR5bZJl6w5plixUwfYLsuuUk9pW6 aE2/AhDU84sBTWK6jVw68y4rHusDnNSg/XZMZG5UaDXYwO2Q/pBg53+uiX4FtIusbkCC Oqqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737588182; x=1738192982; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cNiE1uvWkLfj8s8kKaB2J6Fh7oZulWstFN8Em2IXZys=; b=uyFiO0HT0RUY8RSRjQ/xTkOMkui99+Z65FJyJU9IMflRIh63c0oi+O5ck78CJZaT4l rHEO5C2kOuKRaxiXvH6nvZUoj02N84P+BPKHO03BIj8K51NgxExy8uMzg7pG1cOXM9xr xKR3ucpA8HNrEigPOznVpF/EwTIF/SEn44AsIXGIUl/tGsEK4HB5/VV95h0ASkFFB+AT 88chwkZ1lkXinXK68XpqQv3keYMH0MwZhKeeVp3bXQBUWA7lc6cJFH6wH9M+OlPRYVHo BFx6nQDLgT+Ps6kLC/v6EvuKk9jaKrTEfbHvqQhqAMZgQIL44mEIM0CVLcdOmPqrjWBn Bkaw== X-Gm-Message-State: AOJu0YwvATDCbZC+N0YJ5acKqoBOxNf4eD3WbVNWxLdy2843C5Msgvkn iHFnzXIL2n8Lhss/YKTH3XhN/2F6RXzyTLUjk3FGJtC9So4u2bFVc8hDbUGR9OubX51dJ+fdBYB a X-Gm-Gg: ASbGncs1oDmUq9vDrfT4O4amZaPQmG8S0cw7BtztVxbQRl2Gz7gF8iQ0im2/qZU8kHd u4Z/Mlic2TaVHF7R036XDGhljH5f1faV1mAz+3irxotQu1z7U3Lhr6qhAFaxgJU08YOAd2XKGjj RmNvDvk2uq71XcsRf1UMN78yUnBTUA+hQDtAWKJt6ems2AAICXR/d+H6RUOU0OCfq3sFGHwI4w2 Sy50ZK+7bCerXCJh3h+MnEw/hYEBz3+Uu63XxzuEoxUrz3XArSi3GpUgDy6JWWz88kYwlgrmI1r CEhtEHW6KAET X-Google-Smtp-Source: AGHT+IHFmW+qM/vLR8qCPMPeDylDg9+rtnvdJtJFdDeoVKRK2uOsdy6/ZZU79rUpjh6mInlDSHefXQ== X-Received: by 2002:a17:907:6ea6:b0:aa6:2704:4840 with SMTP id a640c23a62f3a-ab38b3cfb30mr2067161566b.51.1737588181904; Wed, 22 Jan 2025 15:23:01 -0800 (PST) To: devel@lists.libvirt.org Subject: [PATCH V2 17/20] include: Define constants for parallel save/restore Date: Wed, 22 Jan 2025 16:16:51 -0700 Message-ID: <20250122232228.19306-18-jfehlig@suse.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250122232228.19306-1-jfehlig@suse.com> References: <20250122232228.19306-1-jfehlig@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: RV253LHPQMUO3UU3RBCEKMJ4PRYNY3BF X-Message-ID-Hash: RV253LHPQMUO3UU3RBCEKMJ4PRYNY3BF X-MailFrom: jfehlig@suse.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: farosas@suse.de, Claudio Fontana X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Jim Fehlig via Devel Reply-To: Jim Fehlig X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1737588686401019000 Content-Type: text/plain; charset="utf-8" From: Claudio Fontana Add a new VIR_DOMAIN_SAVE_PARALLEL flag to the save and restore APIs, which can be used to specify the use of multiple, parallel channels for saving a domain. The number of parallel channels can be set using the VIR_DOMAIN_SAVE_PARAM_PARALLEL_CHANNELS typed parameter. Signed-off-by: Claudio Fontana Signed-off-by: Jim Fehlig --- include/libvirt/libvirt-domain.h | 11 +++++++++++ src/libvirt-domain.c | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-dom= ain.h index 2a4b81f4df..00dd13509b 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -1637,6 +1637,7 @@ typedef enum { VIR_DOMAIN_SAVE_RUNNING =3D 1 << 1, /* Favor running over paused = (Since: 0.9.5) */ VIR_DOMAIN_SAVE_PAUSED =3D 1 << 2, /* Favor paused over running = (Since: 0.9.5) */ VIR_DOMAIN_SAVE_RESET_NVRAM =3D 1 << 3, /* Re-initialize NVRAM from t= emplate (Since: 8.1.0) */ + VIR_DOMAIN_SAVE_PARALLEL =3D 1 << 4, /* Save and restore using par= allel channels (Since: 10.6.0) */ } virDomainSaveRestoreFlags; =20 int virDomainSave (virDomainPtr domain, @@ -1682,6 +1683,16 @@ int virDomainRestoreParams (vir= ConnectPtr conn, */ # define VIR_DOMAIN_SAVE_PARAM_DXML "dxml" =20 +/** + * VIR_DOMAIN_SAVE_PARAM_PARALLEL_CHANNELS: + * + * an optional parameter used to specify the number of IO channels to use + * during parallel save. As VIR_TYPED_PARAM_INT. + * + * Since: 11.1.0 + */ +# define VIR_DOMAIN_SAVE_PARAM_PARALLEL_CHANNELS "parallel.channels" + /* See below for virDomainSaveImageXMLFlags */ char * virDomainSaveImageGetXMLDesc (virConnectPtr conn, const char *file, diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index 3fb091f240..7b95748b37 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -1010,6 +1010,9 @@ virDomainSaveFlags(virDomainPtr domain, const char *t= o, * If VIR_DOMAIN_SAVE_PARAM_FILE is not provided then a managed save is * performed (see virDomainManagedSave). * + * See VIR_DOMAIN_SAVE_PARAM_* for detailed description of accepted save + * parameters. + * * Returns 0 in case of success and -1 in case of failure. * * Since: 8.4.0 @@ -1222,6 +1225,9 @@ virDomainRestoreFlags(virConnectPtr conn, const char = *from, const char *dxml, * now, VIR_DOMAIN_SAVE_PARAM_FILE is required but this requirement may * be lifted in the future. * + * See VIR_DOMAIN_SAVE_PARAM_* for detailed description of accepted + * restore parameters. + * * Returns 0 in case of success and -1 in case of failure. * * Since: 8.4.0 --=20 2.43.0