From nobody Tue Dec 16 16:56:26 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=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1738690014853921.5310532878493; Tue, 4 Feb 2025 09:26:54 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id C524E1D69; Tue, 4 Feb 2025 12:26:53 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 1D65D1E1B; Tue, 4 Feb 2025 12:25:41 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 2C38A1DC0; Tue, 4 Feb 2025 12:25:37 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 157121D3E for ; Tue, 4 Feb 2025 12:25:32 -0500 (EST) Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-671-UVe44d-uMa-X5C0OC3pMYw-1; Tue, 04 Feb 2025 12:25:30 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BB9671801F1C for ; Tue, 4 Feb 2025 17:25:29 +0000 (UTC) Received: from speedmetal.lan (unknown [10.45.242.3]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EDF131800268 for ; Tue, 4 Feb 2025 17:25:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,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=redhat.com; s=mimecast20190719; t=1738689931; h=from:from: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; bh=FYb9sElxcjqL77ovQDVRIrLY0Xuzt7mDuc7hjE37bQU=; b=ExhF+nMyjCW9wnmnmVztQ/WGG1sZcQAsMt5G15KLMFGw/Yua9fkPwCl0m5QzfolAtbOHY2 2ymTV3KT1p6kyiPH5rlb+af4STVIRuCKtSSeleuoi5GGUnXmMR2kNPuWhx4Vcg/NWeifEO vEGBM0CovdA+F8+lN7W47vsgDuK7ZUY= X-MC-Unique: UVe44d-uMa-X5C0OC3pMYw-1 X-Mimecast-MFC-AGG-ID: UVe44d-uMa-X5C0OC3pMYw From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 3/5] qemu: hotplug: Export persistent reservations manager helper functions Date: Tue, 4 Feb 2025 18:25:21 +0100 Message-ID: <3e7fe4a8db0b3dbba854e33ec2cb8170382ccfb6.1738689879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: rNuw9ft9wWHo6ywskQQTTF31CKPSXToPZkm-0_pnTFo_1738689929 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: DL4HZGKN6NCO2THXOCKJ4AGXLEJHQG7D X-Message-ID-Hash: DL4HZGKN6NCO2THXOCKJ4AGXLEJHQG7D X-MailFrom: pkrempa@redhat.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 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: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1738690017248019100 Content-Type: text/plain; charset="utf-8" Export qemuHotplugAttachManagedPR/qemuHotplugRemoveManagedPR for reuse in blockjob code. Signed-off-by: Peter Krempa --- src/qemu/qemu_hotplug.c | 4 ++-- src/qemu/qemu_hotplug.h | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 5a7e6c3b12..6c224c9793 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -419,7 +419,7 @@ qemuHotplugRemoveDBusVMState(virDomainObj *vm, * * Returns: 0 on success, -1 on error. */ -static int +int qemuHotplugAttachManagedPR(virDomainObj *vm, virStorageSource *src, virDomainAsyncJob asyncJob) @@ -469,7 +469,7 @@ qemuHotplugAttachManagedPR(virDomainObj *vm, * Removes the managed PR object from @vm if the configuration does not re= quire * it any more. */ -static int +int qemuHotplugRemoveManagedPR(virDomainObj *vm, virDomainAsyncJob asyncJob) { diff --git a/src/qemu/qemu_hotplug.h b/src/qemu/qemu_hotplug.h index c6cea0fe69..d51f649bac 100644 --- a/src/qemu/qemu_hotplug.h +++ b/src/qemu/qemu_hotplug.h @@ -125,3 +125,11 @@ qemuHotplugAttachDBusVMState(virQEMUDriver *driver, int qemuHotplugRemoveDBusVMState(virDomainObj *vm, virDomainAsyncJob asyncJob); + +int +qemuHotplugAttachManagedPR(virDomainObj *vm, + virStorageSource *src, + virDomainAsyncJob asyncJob); +int +qemuHotplugRemoveManagedPR(virDomainObj *vm, + virDomainAsyncJob asyncJob); --=20 2.48.1