From nobody Sat Feb 7 09:44:52 2026 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 1728670544710174.02784452290268; Fri, 11 Oct 2024 11:15:44 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 9F89C17B4; Fri, 11 Oct 2024 14:15:43 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 5E0D617B3; Fri, 11 Oct 2024 14:13:32 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 3E3C4176E; Fri, 11 Oct 2024 14:13:28 -0400 (EDT) Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) (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 597061767 for ; Fri, 11 Oct 2024 14:13:20 -0400 (EDT) Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-2888165800fso295320fac.3 for ; Fri, 11 Oct 2024 11:13:20 -0700 (PDT) Received: from home.. ([2603:8081:c640:1::1003]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2885844a8b7sm1047097fac.58.2024.10.11.11.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 11:13:18 -0700 (PDT) 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=1728670399; x=1729275199; 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=zXK3cs1IB1JpklDaVQdrJyY5bzMaxMHSlEe0XE+um3U=; b=G6NFVwQlap3cBf+ZEbNrzTpTxjvGRNaUc5RDQjd5EZwQjgmwhBvKuG3CqHjksrTotk Au1e3bZahh6rawJW4ugeevrjUJZw95k+zMZ+XimkN9FLHunCZUdtI6GrSIik8tBVfAZS 0zmTGgY5Gdo3Xz5Fqlq+dkUss0gTnFXS/s7pUvEw2FVxnfhjuBjrqfUonBcFBCTNtES4 1Zn1+E0nevd4sZxJ7IP0uVILyh8x8DFKNJpMbsbZIQjrlMH9aOTHG3JHC4ak8YYktyvm hJdAet4/u6vNGUgVyz2YwK20WkgA0HXxbF5VRuEU3HaDeg3EUSRHDqQo9pRv7zG2Hs5s 6d+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728670399; x=1729275199; 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=zXK3cs1IB1JpklDaVQdrJyY5bzMaxMHSlEe0XE+um3U=; b=VCKfV0mExfTTvjzsAL3aBUZyvjvm+eFlpEtl/BEjq2+K9zHxUYDQnFPV7nRwl0Z5ZY iEnnDngX2EuU5AvyxRLUGpSkoIYX4nl/oHdfOKxvOkcgcgcz7KTo7KbmlNBpD3j/DQD7 Hazi8uIRWXuD+9IgBbvGIQflBXnB8zc0HMpyJk5tv782XVpz+t7aREslLsdNjcw19plM GXk8AMqMrs0iJHT2KUrO4F6KD3PwmWuylKqQHmZk4xVLkPEOlO4pT8poFMO5JbdAPJGh GvNbE3Af+rSOAFq54n0BFndkOMnnhHgw9lh7Ofvn2NXxMJutWMHgLN+/+Mm+nzcf7vpl sijg== X-Gm-Message-State: AOJu0Yww4043WBBU3S+kBDErvOfm0hh3qIlAHse0gtmaoUMJwA4WDS/d 6yH05zFgDaEvbflVxoPN8oEt5ZNp3WkG344eh3P5vTksOw+wfsa8wAXRFw== X-Google-Smtp-Source: AGHT+IFlYouOSt2F+HOPVFyUzqgDnF4zRKB20NvBG7/yrsqYW3xlEy2v55FPByrCxYPqi/2dA0k9CA== X-Received: by 2002:a05:6870:b6a3:b0:288:6d23:5f24 with SMTP id 586e51a60fabf-2886df88827mr3522350fac.31.1728670398899; Fri, 11 Oct 2024 11:13:18 -0700 (PDT) From: Praveen K Paladugu X-Google-Original-From: Praveen K Paladugu To: devel@lists.libvirt.org Subject: [PATCH 05/10] ch: add scaffolding for host devices management Date: Fri, 11 Oct 2024 13:13:06 -0500 Message-ID: <20241011181311.6813-6-prapal@linux.microsoft.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20241011181311.6813-1-prapal@linux.microsoft.com> References: <20241011181311.6813-1-prapal@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: HPDKDDSCSA7S5QLWBGMBLTIIHVKUS3LA X-Message-ID-Hash: HPDKDDSCSA7S5QLWBGMBLTIIHVKUS3LA 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: 1728670545983116600 Content-Type: text/plain; charset="utf-8" From: Wei Liu They are left empty for now. Make sure CH driver still builds. Content will be filled in later. Signed-off-by: Wei Liu Signed-off-by: Praveen K Paladugu --- src/ch/ch_hostdev.c | 28 ++++++++++++++++++++++++++++ src/ch/ch_hostdev.h | 24 ++++++++++++++++++++++++ src/ch/meson.build | 2 ++ 3 files changed, 54 insertions(+) create mode 100644 src/ch/ch_hostdev.c create mode 100644 src/ch/ch_hostdev.h diff --git a/src/ch/ch_hostdev.c b/src/ch/ch_hostdev.c new file mode 100644 index 0000000000..20ce6efa10 --- /dev/null +++ b/src/ch/ch_hostdev.c @@ -0,0 +1,28 @@ +/* + * ch_hostdev.c: Cloud Hypervisor hostdev management + * + * Copyright (C) 2021 Wei Liu + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * . + */ + +#include + +#include "ch_hostdev.h" +#include "virlog.h" + +#define VIR_FROM_THIS VIR_FROM_CH + +VIR_LOG_INIT("ch.ch_hostdev"); diff --git a/src/ch/ch_hostdev.h b/src/ch/ch_hostdev.h new file mode 100644 index 0000000000..02b7f9c2d8 --- /dev/null +++ b/src/ch/ch_hostdev.h @@ -0,0 +1,24 @@ +/* + * ch_hostdev.h: Cloud Hypervisor hostdev management + * + * Copyright (C) 2021 Wei Liu + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * . + */ + +#pragma once + +#include "ch_conf.h" +#include "domain_conf.h" diff --git a/src/ch/meson.build b/src/ch/meson.build index 633966aac7..ca1291c158 100644 --- a/src/ch/meson.build +++ b/src/ch/meson.build @@ -13,6 +13,8 @@ ch_driver_sources =3D [ 'ch_monitor.h', 'ch_process.c', 'ch_process.h', + 'ch_hostdev.c', + 'ch_hostdev.h', ] =20 driver_source_files +=3D files(ch_driver_sources) --=20 2.44.0