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=-7.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,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 A15ABC433E1 for ; Tue, 25 Aug 2020 12:52:19 +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 7CD3D2075F for ; Tue, 25 Aug 2020 12:52:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CD3D2075F 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 1kAYQr-0002tf-R1; Tue, 25 Aug 2020 12:52:09 +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 1kAYQq-0002tX-NE for xen-devel@lists.xenproject.org; Tue, 25 Aug 2020 12:52:08 +0000 X-Inumbo-ID: 565d5873-fefa-48ea-bb86-e5a897d01221 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 565d5873-fefa-48ea-bb86-e5a897d01221; Tue, 25 Aug 2020 12:52:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 053F3AC50; Tue, 25 Aug 2020 12:52:38 +0000 (UTC) Subject: Re: Kconfig vs tool chain capabilities To: Jan Beulich Cc: "xen-devel@lists.xenproject.org" , Andrew Cooper , Anthony Perard References: <6d5a2014-5184-04f0-62f9-60ddd7537886@suse.com> <4449ee1b-6d2c-70f2-d8e9-80397aeffa41@suse.com> <61d2adc1-c28f-7ed6-237e-45444249173c@suse.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <3ed2a6f7-249b-5757-5dbd-16287e45258d@suse.com> Date: Tue, 25 Aug 2020 14:52:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 25.08.20 14:08, Jan Beulich wrote: > On 25.08.2020 11:49, Jürgen Groß wrote: >> On 25.08.20 10:48, Jan Beulich wrote: >>> On 25.08.2020 10:08, Jürgen Groß wrote: >>>> Correct me if I'm wrong, but assuming my suggested changes being made, >>>> wouldn't a .config file setup once with CET enabled (and I assume you'd >>>> try to enable CET on purpose when trying to test CET and you'd realize >>>> not being able to do so in case your tools don't support CET) ensure >>>> you'd never been hit by surprise when some tool updates would remove >>>> CET support? >>> >>> Probably, but that's not my point. With a CET-incapable tool chain >>> you're not prompted whether to enable CET in the first place, when >>> creating the initial .config. It is this unawareness of a crucial >>> part of code not getting built and tested (and likely unknowingly) >>> that I dislike. In fact, after Andrew's patches had gone in, it >>> had taken me a while to realize that in certain of my builds I don't >>> have CET enabled (despite me having done nothing to disable it), and >>> hence those builds working fine are meaningless for any changes >>> affecting CET code in any way. >> >> Yes, this is the result of letting some options depend on others. >> >> This is what I meant regarding the architecture: there are e.g. multiple >> source files in drivers/char/ being built only for ARM or X86, in spite >> of being located outside arch/. And yet you don't see this as a problem, >> even if you are not able to select those drivers to be built when using >> "the other" arch. > > But they can't be enabled at all on x86. Yes, that's what I'm saying. Still you might do a change requiring to touch those files. And CET can't be enabled at all with old tools. > >> So IMO either we ban "depends on" from our Kconfig files (no, I don't >> want to do that), or we use it as designed and make it as user friendly >> as possible. > > "depends on" can be quite useful without hiding anything from the > person configuring Xen: You can have dependent features be disabled > by disabling a top level feature (via answering a respective prompt). > There are only certain kinds of "depends on" which are problematic in > this regard. There are only certain kinds of "depends on" which _you_ regard to be problematic. Other people might regard other "depends on" to be problematic. And probably most people won't regard any "depends on" to be problematic. I absolutely understand that in some cases you need to perform extra checks and changing the current behavior would make it easier for you. I suspect, though, that such a modification would impose additional work for most users, so I think the benefit of many is more important than the benefit of very few developers hit by this issue. Going the route Bertrand has suggested (with my suggested addition) might be a nice compromise, though. Juergen