From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6517AC07E95 for ; Wed, 14 Jul 2021 01:19:04 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3137B61289 for ; Wed, 14 Jul 2021 01:19:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3137B61289 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.155873.287682 (Exim 4.92) (envelope-from ) id 1m3TY7-00073q-Kd; Wed, 14 Jul 2021 01:18:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 155873.287682; Wed, 14 Jul 2021 01:18:55 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m3TY7-00073j-Hh; Wed, 14 Jul 2021 01:18:55 +0000 Received: by outflank-mailman (input) for mailman id 155873; Wed, 14 Jul 2021 01:18:54 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m3TY6-00073d-P3 for xen-devel@lists.xenproject.org; Wed, 14 Jul 2021 01:18:54 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 740a1f40-e441-11eb-87c8-12813bfff9fa; Wed, 14 Jul 2021 01:18:54 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id E0E0661370; Wed, 14 Jul 2021 01:18:52 +0000 (UTC) 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" X-Inumbo-ID: 740a1f40-e441-11eb-87c8-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626225533; bh=7wa2DuMHWoRvaO8YJmb9x6UGOjBbwzMweWdXxg7gtwk=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=HUWKEhybGVulmC9QVJ/pv2QJlnLXkHIli5DBkhRmDMmoZkaZMCUMbVwuLbvpjciAb 1GyGlkwbLASEB781C5R28WsH8jrzJ0uhA6gHNuc8uifMCT7tLLGEIiFShHRHF72/Gn 9e2PpmOclGAijdFiBwDVhLhU2nUBiTYRpVleqOfIs/BOvwrdpfoOxfls9mS3bocTPW tb7R1CWZ92REPtCkdYKwfUOGBNgcu7B7A8pJc/uCnCwD7pUhd2s1C0rXf4WWMMRakb bkBZQcEusuGHaWcnKmFtyOqjWM5e0BUhgdm3W71wA6H6i+wBz6GpAhsXsxLyujQFl9 zWtCF6+Gz6DwQ== Date: Tue, 13 Jul 2021 18:18:52 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Jan Beulich cc: Julien Grall , Julien Grall , Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Wei Liu , George Dunlap , Ian Jackson , Stefano Stabellini , Volodymyr Babchuk , xen-devel@lists.xenproject.org Subject: Re: [PATCH v5 4/4] xen/mm: Provide dummy M2P-related helpers when the M2P is not supported In-Reply-To: <3ee1496f-aa3d-8784-3d8c-f152958dbfbc@suse.com> Message-ID: References: <20210703171152.15874-1-julien@xen.org> <20210703171152.15874-5-julien@xen.org> <3ee1496f-aa3d-8784-3d8c-f152958dbfbc@suse.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Mon, 5 Jul 2021, Jan Beulich wrote: > On 03.07.2021 19:11, Julien Grall wrote: > > From: Julien Grall > > > > At the moment, Arm is providing a dummy implementation for the M2P > > helpers used in common code. However, they are quite isolated and could > > be used by other architecture in the future. So move the helpers > > necessary for compilation in xen/mm.h and gate them with a new config > > !HAS_M2P. The other M2P related helpers are removed. > > > > Take the opportunity to encode that CONFIG_MEM_SHARING requires > > the M2P. It is done in the header rather than the Kconfig because > > the option is not defined in the common Kconfig. > > > > Signed-off-by: Julien Grall > > With the other Kconfig hunk moved here (from the earlier patch) > Reviewed-by: Jan Beulich Acked-by: Stefano Stabellini