From nobody Sun Dec 22 03:06:45 2024 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=gmail.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1734728909072608.710600123594; Fri, 20 Dec 2024 13:08:29 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 0112015A0; Fri, 20 Dec 2024 16:08:28 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 3CE2415AA; Fri, 20 Dec 2024 16:08:09 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id BFEA31587; Fri, 20 Dec 2024 16:08:06 -0500 (EST) Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (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 AFED6153F for ; Fri, 20 Dec 2024 16:08:05 -0500 (EST) Received: by mail-ot1-f43.google.com with SMTP id 46e09a7af769-71e1597e3b4so640108a34.3 for ; Fri, 20 Dec 2024 13:08:05 -0800 (PST) Received: from home.. ([2603:8081:c640:1::1005]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71fc97d6febsm935333a34.33.2024.12.20.13.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 13:08:03 -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.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, 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=gmail.com; s=20230601; t=1734728884; x=1735333684; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2BAuu5K9vyYyrVsJXh/KagNnpKiiuLUyl2TUNz3Lzl0=; b=QB1QPEMArUd9e8hFkWZbfxd8MIiKIJwd2YO5ZA2v4sZIujpG8MGpLEZXa45kfP78j5 4Kcws04sBx0mwDBrlnYRhq4qV9i8hZ+jYBfQnodDLdv5mXlQRo35ryzSafaCHS1cJDjx BKq6jLHiyuVO/eJpbWIQSFh5nt10FXMGLUqZvp8OzgJhT4jJAXBbRY+hBeRn+Z7oCqgg h5A7247o9hljAEYhhEhVu6FMg06cpaJPcY7OzpVBUDXbMpBnJ4ymURkGwopFii6BRzjL Ayd7WMga0vcF4JxjWzf5mxGaV0k9d+84pxJPgmhDJ7o2aqmNbrReZdnUn6IY6I3sv6mg pP+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734728884; x=1735333684; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2BAuu5K9vyYyrVsJXh/KagNnpKiiuLUyl2TUNz3Lzl0=; b=U0j0k3CWT1RLS3XFrZcBG1KJe8wNQm+/pcG/f/msoMzm2z/sJ02VilS/kiwoUQuqiR /d1b/tQ5zPUs+EH3O0ZmhyzQidwkudTsqF33yI35U5ZMCqaFl1KXqHOCkXNanUeELuxE rRtbItZ0G8+lwFh8bny1GrJckVgb4Pd7khDR0KF+vPZqw0j6o9DbkCdjWhhrIoVOwinJ qC5gI5L/zNDlg0HN4RQpAy87yEgCRV7I+aB5YHJEONwKDA6Bvr6De2591j22cQBxdI/u 6YR50KQMqSf6Cv+qwIsPPfh0T4mEXjZPToUiBg27DCUTmlG0BSh6QHuteWUwUbj+4Dds KwDA== X-Gm-Message-State: AOJu0Yz1WqfoTAIgyRE2Swr00jqfLoz7fYaV1qzCjxtxBQblkB7opwMM 2CBMb51ho1RVlpONPN3ihg92vY/FW805qnRAMKiI/CWcjvpHtOCvPi3cUxs1 X-Gm-Gg: ASbGncvijy6Qp5+vCde5/JVzNsIFfmYamPaxkz1rl/XO+a0J9qlfAd3p7iUJEuf7P7I gjRe9pgwNhMPAM+6hCCoSXAr+ofjUVfPj03UDOAYDvvgSP626tF3immwTE+gD4G7w5Po5vGlA06 HJ1pSLfNcYqm2nyP7Zy8K9WZk71L/YwxfZH3yJ8YsfnNF24/CanUVw0R3iRFZxTWFmRqQIvUnDz ePAySAFy8e26AeUiTa2sfrBt4Y68P0WvOzcx34A X-Google-Smtp-Source: AGHT+IErP8ugJ9GHu55dpAkU2vg7L83wNMYOsCVTMz9prUTwblWm+DFFc+h16BU1jiRX5l+1XVdqdQ== X-Received: by 2002:a05:6830:3155:b0:71d:4b52:4e46 with SMTP id 46e09a7af769-720ff88998bmr2823547a34.15.1734728884435; Fri, 20 Dec 2024 13:08:04 -0800 (PST) From: Praveen K Paladugu To: devel@lists.libvirt.org Subject: [PATCH] spec: Enable ch driver Date: Fri, 20 Dec 2024 15:08:02 -0600 Message-ID: <20241220210802.8606-1-praveenkpaladugu@gmail.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: GOIO6CE7BQ427LWA24IBELADXT3JCYL2 X-Message-ID-Hash: GOIO6CE7BQ427LWA24IBELADXT3JCYL2 X-MailFrom: praveenkpaladugu@gmail.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: liuwe@microsoft.com 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: 1734728909938116600 Content-Type: text/plain; charset="utf-8" Enabling building and packaging ch driver in the spec file. Signed-off-by: Praveen K Paladugu --- libvirt.spec.in | 51 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 3d5164b534..303d7cb34a 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -35,6 +35,7 @@ %define with_lxc 0%{!?_without_lxc:1} %define with_libxl 0%{!?_without_libxl:1} %define with_vbox 0%{!?_without_vbox:1} +%define with_ch 0%{!?_without_ch:1} =20 %ifarch %{arches_qemu_kvm} %define with_qemu_kvm %{with_qemu} @@ -1026,6 +1027,20 @@ Server side daemon and driver required to manage the= virtualization capabilities of VirtualBox %endif =20 + %if %{with_ch} +%package daemon-driver-ch +Summary: Cloud-Hypervisor driver plugin for libvirtd daemon +Requires: libvirt-daemon-common =3D %{version}-%{release} +Requires: libvirt-daemon-log =3D %{version}-%{release} +Requires: libvirt-libs =3D %{version}-%{release} + +%description daemon-driver-ch +The ch driver plugin for the libvirtd daemon, providing +an implementation of the hypervisor driver APIs by +Cloud-Hypervisor + %endif + + %package client Summary: Client side utilities of the libvirt library Requires: libvirt-libs =3D %{version}-%{release} @@ -1188,9 +1203,15 @@ exit 1 %endif =20 %if %{with_esx} - %define arg_esx -Ddriver_esx=3Denabled -Dcurl=3Denabled + %define arg_esx -Ddriver_esx=3Denabled +%else + %define arg_esx -Ddriver_esx=3Ddisabled +%endif + +%if %{with_esx} || %{with_ch} + %define arg_curl -Dcurl=3Denabled %else - %define arg_esx -Ddriver_esx=3Ddisabled -Dcurl=3Ddisabled + %define arg_curl -Dcurl=3Ddisabled %endif =20 %if %{with_hyperv} @@ -1205,6 +1226,12 @@ exit 1 %define arg_vmware -Ddriver_vmware=3Ddisabled %endif =20 +%if %{with_ch} + %define arg_ch -Ddriver_ch=3Denabled +%else + %define arg_ch -Ddriver_ch=3Ddisabled +%endif + %if %{with_storage_rbd} %define arg_storage_rbd -Dstorage_rbd=3Denabled %else @@ -1335,11 +1362,12 @@ export SOURCE_DATE_EPOCH=3D$(stat --printf=3D'%Y' %= {_specdir}/libvirt.spec) -Ddriver_remote=3Denabled \ -Ddriver_test=3Denabled \ %{?arg_esx} \ + %{?arg_curl} \ %{?arg_hyperv} \ %{?arg_vmware} \ + %{?arg_ch} \ -Ddriver_vz=3Ddisabled \ -Ddriver_bhyve=3Ddisabled \ - -Ddriver_ch=3Ddisabled \ %{?arg_remote_mode} \ -Ddriver_interface=3Denabled \ -Ddriver_network=3Denabled \ @@ -1541,6 +1569,10 @@ rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/lib= virtd.libxl rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_libxl.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.a= ug %endif + %if ! %{with_ch} +rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_ch.aug +rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_ch.aug + %endif =20 # Copied into libvirt-docs subpackage eventually mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt libvirt-docs @@ -2405,6 +2437,19 @@ exit 0 %attr(0755, root, root) %{_libexecdir}/libvirt_sanlock_helper %endif =20 + %if %{with_ch} +%files daemon-driver-ch +%attr(0755, root, root) %{_sbindir}/virtchd +%config(noreplace) %{_sysconfdir}/libvirt/virtchd.conf +%{_datadir}/augeas/lenses/virtchd.aug +%{_datadir}/augeas/lenses/tests/test_virtchd.aug +%{_unitdir}/virtchd-admin.socket +%{_unitdir}/virtchd-ro.socket +%{_unitdir}/virtchd.service +%{_unitdir}/virtchd.socket +%{_libdir}/libvirt/connection-driver/libvirt_driver_ch.so + %endif + %files client %{_mandir}/man1/virsh.1* %{_mandir}/man1/virt-xml-validate.1* --=20 2.47.0