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.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 180FCC47255 for ; Mon, 11 May 2020 14:11:59 +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 DDFFA206DB for ; Mon, 11 May 2020 14:11:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=xen.org header.i=@xen.org header.b="krqYsOqj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DDFFA206DB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org 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 1jY99j-00006C-Lz; Mon, 11 May 2020 14:11:43 +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 1jY99h-000067-NC for xen-devel@lists.xenproject.org; Mon, 11 May 2020 14:11:41 +0000 X-Inumbo-ID: 55fd17e8-9391-11ea-a214-12813bfff9fa Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 55fd17e8-9391-11ea-a214-12813bfff9fa; Mon, 11 May 2020 14:11:41 +0000 (UTC) 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: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=To+MbXWFEZdpU38r7NtAo/xrgp96aDKRXfuoKZbjyTs=; b=krqYsOqjckHYabN3zBu+PGSjAJ ZzqS+kSEdyIewDpqXoA5DL1LOnolCL+pFUn1VxEWoiB/wpxkc0ruvDt5uK2/6AdRC1MqLiv5FjFQ6 0NwYtdrtIj17yO+UryXk3JOLK1I8Enr6/4K1EHtdHRyVC9i+OhiLmNufYxRPrUjmQSoE=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jY99f-0007xV-R1; Mon, 11 May 2020 14:11:39 +0000 Received: from [54.239.6.186] (helo=a483e7b01a66.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jY99f-00079M-Eh; Mon, 11 May 2020 14:11:39 +0000 Subject: Re: [PATCH RESEND 2/2] xen: Allow EXPERT mode to be selected from the menuconfig directly To: Jan Beulich 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: Julien Grall Message-ID: Date: Mon, 11 May 2020 15:11:37 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <803876ce-503a-2e97-f310-0413e515970b@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB 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" 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? Cheers, -- Julien Grall