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 D1E71C35274 for ; Thu, 21 Dec 2023 19:19:50 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.659129.1028586 (Exim 4.92) (envelope-from ) id 1rGOZz-0001L1-Ta; Thu, 21 Dec 2023 19:19:35 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 659129.1028586; Thu, 21 Dec 2023 19:19:35 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rGOZz-0001Ku-R5; Thu, 21 Dec 2023 19:19:35 +0000 Received: by outflank-mailman (input) for mailman id 659129; Thu, 21 Dec 2023 19:19:34 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rGOZy-0001Km-Pe for xen-devel@lists.xenproject.org; Thu, 21 Dec 2023 19:19:34 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rGOZx-0007tH-Gr; Thu, 21 Dec 2023 19:19:33 +0000 Received: from gw1.octic.net ([88.97.20.152] helo=[10.0.1.240]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rGOZx-0006sw-9d; Thu, 21 Dec 2023 19:19:33 +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=TMT37EPywLcrHdFLyaPINfUueikf9PSyqpis82OaOzI=; b=pzw8OCK5ey0d46+BuHgflJVFhL fxxLcBfJVmAuoEH5E5cf9AXRQ6qXHytj3w9yv/k5gzdsKs+xBUStjqYu37+nS3pUK014r2790EZz6 3GmPlIMHftdk/v0O4p1Mzn2qampqX5T3Hlbdr30lLmEUbNIEb91PU2cCK69PGqj5t658=; Message-ID: Date: Thu, 21 Dec 2023 19:19:31 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 7/9] xen: ifdef inclusion of in Content-Language: en-GB To: Oleksii Kurochko , xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Andrew Cooper , George Dunlap , Jan Beulich , Wei Liu , Shawn Anastasio References: From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Oleksii, On 20/12/2023 14:08, Oleksii Kurochko wrote: > Ifdef-ing inclusion of allows to avoid > generation of empty for cases when > CONFIG_GRANT_TABLE is not enabled. It would have been nice to explain the reason of this change. Is this a compilation error or just a nice thing to have? The reason I am asking is... > > The following changes were done for Arm: > should be included directly because it contains > gnttab_dom0_frames() macros which is unique for Arm and is used in > arch/arm/domain_build.c. > is #ifdef-ed with CONFIG_GRANT_TABLE in > so in case of !CONFIG_GRANT_TABLE gnttab_dom0_frames > won't be available for use in arch/arm/domain_build.c. ... I find rather ugly that we require domain_build.c to include both asm/grant_table.h and xen/grant_table.h. Right now, I don't have a better approach, so I would be ok so long the rationale of the change is explained in the commit message. > > Suggested-by: Jan Beulich > Signed-off-by: Oleksii Kurochko Acked-by: Julien Grall Cheers, -- Julien Grall