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 493FFC4167B for ; Fri, 15 Dec 2023 10:06:47 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.655008.1022630 (Exim 4.92) (envelope-from ) id 1rE55V-00063N-No; Fri, 15 Dec 2023 10:06:33 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 655008.1022630; Fri, 15 Dec 2023 10:06:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rE55V-00063G-LE; Fri, 15 Dec 2023 10:06:33 +0000 Received: by outflank-mailman (input) for mailman id 655008; Fri, 15 Dec 2023 10:06:32 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rE55U-000638-7Q for xen-devel@lists.xenproject.org; Fri, 15 Dec 2023 10:06:32 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rE55N-0002S0-6e; Fri, 15 Dec 2023 10:06:25 +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 1rE55N-0002K1-07; Fri, 15 Dec 2023 10:06:25 +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=yGOQoYn/pPtbyKE9cY1vHTrI83/h3ZhByC+oEYbbW5Y=; b=cb5rTVYJDKnorGdFyau4arcqjX IWsjIDzE2F6fu+g4n+M9erBr42b2V4M+bbEGTQZtPGHIBPC1olj1j3nLRokc5Xc3u8xL/zdwxHYCY NDrWjPok+/fpTEm0pEi1+vbFgUDprCpttcVD2xr3B4fpmSDywvI5GDDo68E54fkKw4zk=; Message-ID: <05133f2d-c322-459b-b0b2-e34a07fbb3b6@xen.org> Date: Fri, 15 Dec 2023 10:06:22 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [XEN PATCH v3 3/3] xen/mm: add declaration for first_valid_mfn Content-Language: en-GB To: Nicola Vetrini , Jbeulich Cc: Stefano Stabellini , consulting@bugseng.com, Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Andrew Cooper , Wei Liu , Shawn Anastasio , xen-devel@lists.xenproject.org, George Dunlap References: <6c717bd4-db1b-4e19-9b98-0776a8359085@suse.com> <2a7f0d03-1cab-4824-86ae-fb7a26ff8adc@suse.com> <9fcc73f0-fc9c-4f4f-a431-f1f3b0df1b6a@xen.org> <4a1f86c7-6643-4fd1-ba1c-a4f86abb63f3@suse.com> <0166dd5b-c12e-40d8-88a6-1f3c97bcf2e0@xen.org> <3b2f1699-d58c-40d8-af36-caef70064601@suse.com> <2879189b-eea3-48c4-86e4-baed69e6a8f0@xen.org> <9c981e710ef8c86f2a71ef332d991ef1@bugseng.com> From: Julien Grall In-Reply-To: <9c981e710ef8c86f2a71ef332d991ef1@bugseng.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, On 15/12/2023 09:59, Nicola Vetrini wrote: >>>> +extern mfn_t first_valid_mfn; >>>> + >>>>    /* >>>>     * Create only non-leaf page table entries for the >>>>     * page range in Xen virtual address space. >>> >>> ... I still disagree with the placement here (should be xen/numa.h imo), >> >> I don't care too much about which header is used. So I am ok with >> numa.h if this is what you really want. However... >> >>> and I still don't see why we can't carry out the TODO right away, if we >>> have to touch all of this anyway. If it's really too much to ask from >>> the original contributor, I can certainly see about making a patch >>> myself >> >> There are a few reasons I didn't update with that approach or want to >> ask Nicola for this: >>   1. I assume this will be a macro and it is not clear to me whether >> Eclair would be able to detect the visibility change based on the config >>   2. IMHO, this is obfuscating a bit more the code >>   3. I don't see why we want to special case first_valid_mfn. I am >> sure we have other external variables in the same situation. >> >> So if any solution needs to came up, then it needs to be generic, and >> I fear this is going to be yet another lengthy work which is not worth >> it for this case. >> >>> (and I've now added this to my short-term TODO list). >> >> Thanks. But as I wrote above, I am not sure I agree such proposal. Let >> see what the code looks like. >> > > Given the controversy that arose on this patch, maybe it's best to drop > it now from this series. If then it's agreed that as a temporary > workaround you want to leave it as is and deviate, as I proposed > elsewhere in the thread, feel free to reach out. Meanwhile, if patch 1 > looks ok I can mark this series as done and focus on the v2 for R2.1, > which is almost ready. I am still not in favor of deviation. We would need to create a new SAF-* (because none of the existing one are not correct) and it is not clear how you could argue this is a good deviation. Just to be clear, this is not a Nack for a deviation. I find just silly we are trying to use deviation here just because there is a small roadblock. To me the goal is to try to improve Xen, not trying to deviate everything because this is easier. Cheers, -- Julien Grall