From nobody Fri Dec 19 20:16:32 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=1738953943; cv=none; d=zohomail.com; s=zohoarc; b=mA7PYMoSUnx/E4pEL3d7uOxwrEtnCAMbjZFykLn43bZmES1GRhKZEGz1NWMYvExw3kSmncyx4o3/gSxRm5qpJDuR0dhjPLikQ9qhyj4IEVzgaI3gutjtuShiLSQGO+lUOt49URIscbvT4MwH6oeMm4pqHrNT4EVlW404eRGnjqk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1738953943; 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=rlCXWQUMOmmIyTbsg6hrMuGl99adTT2SvSJRvtfyulY=; b=aULKtLq4vN6KnHKDCaRA16M2+d8yeVmgez6jgrFBYBRImZ2r/bKPnXpD7bat0fpcEkOONmTKdVRL5UbYXsNzmqZag1u0ieRU5jTmoTChHe+g0RAqqvweHILOeW7BWXNdo3cIasH2HmwH/E6HOYF1prHMhk3zUYh1rfI3/gihVow= 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 1738953943596742.4825806421662; Fri, 7 Feb 2025 10:45:43 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id AA0E218A4; Fri, 7 Feb 2025 13:45:42 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id F23BF1706; Fri, 7 Feb 2025 13:38:36 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 29A511888; Fri, 7 Feb 2025 13:38:32 -0500 (EST) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 8555D15F7 for ; Fri, 7 Feb 2025 13:38:09 -0500 (EST) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4361f65ca01so23679325e9.1 for ; Fri, 07 Feb 2025 10:38:09 -0800 (PST) Received: from localhost (205-201-32-8.scinternet.net. [205.201.32.8]) by smtp.gmail.com with UTF8SMTPSA id d2e1a72fcca58-73048bf1a0csm3314469b3a.115.2025.02.07.10.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 10:38:07 -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_DNSWL_NONE,RCVD_IN_MSPIKE_H2, 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=1738953488; x=1739558288; 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=nWafGfVd0X20FZcSBt79NzW4bCVsGIeGkDs4uIU6lRk=; b=bB95mp8FLDMR9rZcan4X9e4OXD5CMskhIAJShOLJMOIacbSRi7/sKzTIeFdVMFvZnn JVdmBYt7pB4yiWk9LuRs3X2Zqzxnf7pc64YaKUtC3amTbEAqULpjllHTBSqutFVklSx6 o196l8ZNVISXHjCVwBYpdwlxcEuG2G/9bAZKpjJ7iZxGcV2hysKskx1emp9aKND3Aivj narDSGiI/3P+upTAaJevxaSl6KvZE6CviHl3+Ictd0kf6/5avIxneiFPO6dexx2fzwBU I9UxdTuk46w2h4NaB/tWQ0jr5d4B17mvRkM6sLgqsD5nPjX+tT3AI8AEXX4xYCs7AhAw uezw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738953488; x=1739558288; 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=nWafGfVd0X20FZcSBt79NzW4bCVsGIeGkDs4uIU6lRk=; b=nMPd35SRd0tY2fvFTIxjMlqKhVSHAF43Wa/RmQgdkE0k8dujc9kR92Mb+8a0RJWlHJ aT7KKyjfU6VhBjpGEGZSPuy2yQcvePuIFtz3DDoT7z4otPeW3QXc4IB0Z1fxpiJUEaVf U7VpU5CU2w0hXPsaGcyzmH/nQmZnXvtk/T+1CYMS7xxIxh9WrQL9vMzAJ5YdMrK9pnE1 Xz+CAw4btPVVJsb8AVVuVufXnaqdCROjpuVTGKjypxkaTTG5MyniYVgZxvqTfBZwAE7s OCNDich3PqgfIdfPMjLUSrTzgl7Yq3rIiqhZOyOUhsFsjKWHq0DVjvhDMbBLeo9/OWgN Eitg== X-Gm-Message-State: AOJu0Yzfthz0YDpxgdgNXCUqrwGiV1QmEE27BFra3EVwWlUAVEb4OZO0 /RXvh9qu1N/PXqwVLIOeE9CJXMmh82hr82is46/e4/LmXZQkX4KH5ZVDBP/0yhp7zmVP+ATqoJK g X-Gm-Gg: ASbGncv+Ak8UfvU1DVGDcT3BAKpjsoPof88MTc747/rFCCUx3hh1dxYdKU6MsCGUPA1 po3F/j+1PG0clDvfBR7WInUXtz5ZPRCBv79tOG+JW351K+UR3ClMyrFXbpOndJ7A1meX8B/tge8 z9BGK/yf3wvMJiGADwxvyAryTm5QICjjKDYhZbJ4DQ0Pt4OhDt0SwYavS9FOOoHvNLxisVygfCz 2wx+KXVfhYzsMWn+wXqQCiwTTHz877R9myVGQ6qKVua0i8kK/kG3Yslld9ye9EKcVOF9bb6tLzr ri54vzWZkSOddxq3ltVwCQufIEwmbVX8Zw== X-Google-Smtp-Source: AGHT+IEJ3ex2Ponf+t6AsBw1aVBywxAKITP5C3/VJzalI/MMsr1ZAqOB8SUs1nXDG/TfI27Icd2rgA== X-Received: by 2002:a05:6000:1acb:b0:38a:4b8b:295a with SMTP id ffacd0b85a97d-38dc9101923mr3494510f8f.31.1738953488427; Fri, 07 Feb 2025 10:38:08 -0800 (PST) To: devel@lists.libvirt.org Subject: [PATCH V3 16/19] include: Define constants for parallel save/restore Date: Fri, 7 Feb 2025 11:27:27 -0700 Message-ID: <20250207183730.21686-17-jfehlig@suse.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250207183730.21686-1-jfehlig@suse.com> References: <20250207183730.21686-1-jfehlig@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: FDM7NXYYQF7OKG4NHBVBVWPGUKCKFA4F X-Message-ID-Hash: FDM7NXYYQF7OKG4NHBVBVWPGUKCKFA4F 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: 1738953945970019100 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 and restoring 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 f5420bca6e..0e94a4bd09 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -1655,6 +1655,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, @@ -1700,6 +1701,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 cf68b0520b..d75ee25580 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