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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 E83E0C47255 for ; Mon, 11 May 2020 14:15:18 +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 C35FE206B7 for ; Mon, 11 May 2020 14:15:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C35FE206B7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jY9Cx-0000H2-52; Mon, 11 May 2020 14:15:03 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jY9Cv-0000Gt-J1 for xen-devel@lists.xenproject.org; Mon, 11 May 2020 14:15:01 +0000 X-Inumbo-ID: ccb61560-9391-11ea-b07b-bc764e2007e4 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id ccb61560-9391-11ea-b07b-bc764e2007e4; Mon, 11 May 2020 14:15:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E2D4EAB76; Mon, 11 May 2020 14:15:01 +0000 (UTC) Subject: Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly To: Julien Grall References: <20200430142548.23751-1-julien@xen.org> <20200430142548.23751-3-julien@xen.org> <3a4ec020-f626-031e-73a6-b2eee97ab9e8@suse.com> <123BE55A-AACB-4FE3-94E2-1559ED73DD09@citrix.com> <24240.3047.877655.345428@mariner.uk.xensource.com> <1d8eb504-51e9-b8e7-f1af-862760f0f15d@xen.org> <24244.16076.627203.282982@mariner.uk.xensource.com> <09d729ad-58a7-1f4b-c779-5fd81d7009a4@xen.org> <4017f7f0-744b-70ff-8fa4-b33c53a8b9e2@suse.com> <803876ce-503a-2e97-f310-0413e515970b@suse.com> From: Jan Beulich Message-ID: Date: Mon, 11 May 2020 16:14:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Andrew Cooper , Julien Grall , George Dunlap , xen-devel , Ian Jackson Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 11.05.2020 16:11, Julien Grall wrote: > Hi, > > On 11/05/2020 15:07, Jan Beulich wrote: >> On 11.05.2020 15:57, Julien Grall wrote: >>> Hi, >>> >>> On 11/05/2020 14:40, Jan Beulich wrote: >>>> On 11.05.2020 15:30, Julien Grall wrote: >>>>> Hi Ian, >>>>> >>>>> Thank you for the clarification. >>>>> >>>>> On 07/05/2020 18:01, Ian Jackson wrote: >>>>>> Julien Grall writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"): >>>>>>> On 04/05/2020 13:34, Ian Jackson wrote: >>>>>>>> George Dunlap writes ("Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly"): >>>>>>>>> On Apr 30, 2020, at 3:50 PM, Jan Beulich wrote: >>>>>>>>>> Well, if I'm not mis-remembering it was on purpose to make it more >>>>>>>>>> difficult for people to declare themselves "experts". FAOD I'm not >>>>>>>>>> meaning to imply I don't see and accept the frustration aspect you >>>>>>>>>> mention further up. The two need to be carefully weighed against >>>>>>>>>> one another. >>>>>>>> >>>>>>>> Yes, it was on purpose. However, I had my doubts at the time and >>>>>>>> I think experience has shown that this was a mistake. >>>>>>>> >>>>>>>>> I don’t think we need to make it difficult for people to declare >>>>>>>>> themselves experts, particularly as “all” it means at the moment is, >>>>>>>>> “Can build something which is not security supported”. People who >>>>>>>>> are building their own hypervisors are already pretty well advanced; >>>>>>>>> I think we can let them shoot themselves in the foot if they want >>>>>>>>> to. >>>>>>>> >>>>>>>> Precisely. >>>>>>> >>>>>>> Can I consider this as an Acked-by? :) >>>>>> >>>>>> I am happy with the principle of the change. I haven't reviewed the >>>>>> details of the commit message etc. >>>>>> >>>>>> I reviewed the thread and there were two concernes raised: >>>>>> >>>>>> * The question of principle. I disagree with this concern >>>>>> because I approve of principle of the patch. >>>>>> >>>>>> * Some detail about the precise justificaton as written in >>>>>> the commit message, regarding `clean' targets. Apparently the >>>>>> assertion may not be completely true. I haven't seen a proposed >>>>>> alternative wording. >>>>> >>>>> I have checked the latest staging, the `clean` target doesn't trash >>>>> .config anymore. >>>>> >>>>>> >>>>>> I don't feel I should ack a controversial patch with an unresolved >>>>>> wording issue. Can you tell me what your proposed wording is ? >>>>>> To avoid blocking this change I would be happy to review your wording >>>>>> and see if it meets my reading of the stated objection. >>>>> >>>>> Here a suggested rewording: >>>>> >>>>> "EXPERT mode is currently used to gate any options that are in technical >>>>> preview or not security supported At the moment, the only way to select >>>>> it is to use XEN_CONFIG_EXPERT=y on the make command line. >>>>> >>>>> However, if the user forget to add the option when (re)building or when >>>>> using menuconfig, then .config will get rewritten. This may lead to a >>>>> rather frustrating experience as it is difficult to diagnostic the >>>>> issue. >>>> >>>> To me this looks very similar to e.g. not suitably overriding the >>>> default toolchain binaries, if one has a need to build with newer >>>> ones than what a distro provides. According to some of my routinely >>>> built configs both can be done by putting suitable entries into >>>> ./.config (not xen/.config), removing the need to remember adding >>>> either to the make command line. >>> >>> I have never heard of ./.config before. So what are you referring to? >> >> I'm referring to this line in ./Config.mk: >> >> -include $(XEN_ROOT)/.config > > Great another undocumented way to do things... > >> >>> But yes, there are ways to make it permanent. But that involves hacking >>> Xen source. >> >> Why would there be any need for a source modification? Just like >> xen/.config, ./.config is not considered part of the source. >> >>> This is not a very great approach because if you need to >>> bisect, then you have to remember to apply the change everytime. It also >>> doesn't work if you have to build for multiple different target from the >>> same source. >> >> Why wouldn't it? I'm doing exactly this, far beyond just x86 and >> Arm builds, and it all works fine. (It would work even better >> with out-of-tree builds, but it looks like Anthony is getting us >> there.) > > ... let me ask it differently. Are you concerned of my wording or by the > fact we make easier to a user to EXPERT mode? I'm trying to make the point that your patch, to me, looks to be trying to overcome a problem for which we have had a solution all the time. Jan