Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C161AC10DC1 for ; Thu, 30 Nov 2023 12:46:12 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.644653.1005979 (Exim 4.92) (envelope-from ) id 1r8gQZ-0003mt-1q; Thu, 30 Nov 2023 12:45:59 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 644653.1005979; Thu, 30 Nov 2023 12:45:59 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r8gQY-0003mm-V8; Thu, 30 Nov 2023 12:45:58 +0000 Received: by outflank-mailman (input) for mailman id 644653; Thu, 30 Nov 2023 12:45:58 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r8gQY-0003mg-Bd for xen-devel@lists.xenproject.org; Thu, 30 Nov 2023 12:45:58 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r8gQX-0005gO-M8; Thu, 30 Nov 2023 12:45:57 +0000 Received: from [15.248.2.159] (helo=[10.24.67.31]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r8gQX-0006R0-GX; Thu, 30 Nov 2023 12:45:57 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=JXp0gOU6SnUTGAjIsT8TTnPAdP9pMKr3FuizY7+IneQ=; b=TEwoCS7/vU88MndBbmZwKcJ2c/ RXfDP6WYzYH+rWgFCzcNLxSS1hPxPtPs7yPes4BgTGlNjbkiQaumCJpK4mdq0rhDc9/VndkDgbsQ/ 7joHKD660SC0U22m7ulhBmSEAv1U7Sn+csW7C6T/khJixd2ykaNX0n2PRYwRowCSBSkc=; Message-ID: <5436bc00-ea19-4cb3-aa14-3de59434a88d@xen.org> Date: Thu, 30 Nov 2023 12:45:55 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] xen/arm: Move static event channel feature to a separate module Content-Language: en-GB To: Michal Orzel , xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Bertrand Marquis , Volodymyr Babchuk References: <20231130095757.11162-1-michal.orzel@amd.com> From: Julien Grall In-Reply-To: <20231130095757.11162-1-michal.orzel@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Michal, On 30/11/2023 09:57, Michal Orzel wrote: > Move static event channel feature related code to a separate module > (static-evtchn.{c,h}) in the spirit of fine granular configuration, so > that the feature can be disabled if not needed. > > Introduce Kconfig option CONFIG_STATIC_EVTCHN, enabled by default (to > keep the current behavior) dependent on CONFIG_DOM0LESS. While it could > be possible to create a loopback connection for dom0 only, this use case > does not really need this feature and all the docs and commit messages > refer explicitly to the use in dom0less system. > > The only function visible externally is alloc_static_evtchn(), so move > the prototype to static-evtchn.h and provide a stub in case a feature > is disabled. Guard static_evtchn_created in struct dt_device_node as > well as its helpers. > > Signed-off-by: Michal Orzel Acked-by: Julien Grall Cheers, -- Julien Grall