Received: by 10.213.65.68 with SMTP id h4csp3281012imn; Tue, 3 Apr 2018 02:00:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx48LDcw3g1YqNgEAqGOKq/saruqK/tFTpKxypUW0FF5SMgdtsissqOKOasVAAJc06N4BljcU X-Received: by 10.101.64.7 with SMTP id f7mr8612967pgp.216.1522746030915; Tue, 03 Apr 2018 02:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522746030; cv=none; d=google.com; s=arc-20160816; b=vVNJzijsAr5Ir7N9apUWFWXYfYZD3TNb6bh+Dbvi76vL4j+TG9Q4T33om4NIR4407v B/mryFotkObN54OZMYicOnfjH76X9JbhqvHxIkeoqc0gd8pcViLuPz6uzaqeNS4D2HCf FWLyCbHtjEwcencCgSZ1ImxLxxCOmzy08y4dIamUbN+xoPsuW8LNruUf/ZTNItXmfdEa PMj0eZnqLiYAKXNeFvAUcSHfZxUdstUq+q6tY/RlII6CumFpLYWLpccoApZ8gX1i37a+ lBeneIMhcb6K9GbV6+kt43ze5YXRFwSx3zdHLHD82gdybJr7fo1YYa7lFn2Yb7kYj4Zi GItg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=m1mOtwv3VlWozMhSNWC01XD5joLLUIubSScAFi7vmwg=; b=KCb8qeOEVQfkwTa1pacsp4cuEOtLjwrWtipcc2LEo8HEgK54VWtsEs4mrhqGh8jfEV RZeBQefT68i8WXD6uLd+ODxxfglqpbOMYUsv1W0Kz9y6ehAplF8LtdRNPN41oxsoUx+F ut7O6GKp/6G/SPCT4Cxn0avE7dn4vW08o5LFu4o8HXgoyMIHVPTmzAhc8tFmS4QwCRd2 pqNjgGpxhu1y6iuDYlhxxPDX63Ec8qIwiYKjCl6KkkllvocKWekriMSOnhJ094sU/HLN McJvubC3W4RGuRKQDvSpuOUe+faT8Sg3Z+Uxz4xsYXn0eUQnOrWQ2MCcNHouBBHnzSIg BdfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ib2ZiAQI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si1624795pgr.301.2018.04.03.02.00.16; Tue, 03 Apr 2018 02:00:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ib2ZiAQI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755224AbeDCI7L (ORCPT + 99 others); Tue, 3 Apr 2018 04:59:11 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:51406 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755086AbeDCI7K (ORCPT ); Tue, 3 Apr 2018 04:59:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=m1mOtwv3VlWozMhSNWC01XD5joLLUIubSScAFi7vmwg=; b=Ib2ZiAQIcOD2onsvWRlR1i+oW uWFFimk0P+WyFMtQh5/f1yQBC2RyDjfV/5RFSndPzXCh3dvprElorW1SMKeZEgckt6jzpILwV7iWi CVDp8nv1zATPUjatu6SmqG5vNrrY9anJl5WSO8ioTZ0ZloBXZglY6fDEj7/umui35tGAaMUKvUGMC fe7yp4ceesE4op4Uclrt/RcidNX8NrOteb3LjPe5sQsQ0IvqQHm92cz67jG1laZl9i4mpqlqcVxmt eM6rn4ugqqWPuOF1WDVRYfVx1x1iHKGKzY8MnRI1eimlWtCEnhhx3k9DRiN+vvKZ3QE0M4LnHSxEZ f9r5jAB0w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f3HmV-0005w6-OE; Tue, 03 Apr 2018 08:59:07 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8E26C202A4A09; Tue, 3 Apr 2018 10:59:04 +0200 (CEST) Date: Tue, 3 Apr 2018 10:59:04 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Ingo Molnar , Matthias Kaehlcke , Linux Kernel Mailing List , Thomas Gleixner , Andrew Morton Subject: Re: [GIT PULL] x86/build changes for v4.17 Message-ID: <20180403085904.GY4082@hirez.programming.kicks-ass.net> References: <20180402095033.nfzcrmxvpm46dhbl@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 02, 2018 at 02:44:48PM -0700, Linus Torvalds wrote: > On Mon, Apr 2, 2018 at 2:50 AM, Ingo Molnar wrote: > > > > The biggest change is the forcing of asm-goto support on x86, which effectively > > increases the GCC minimum supported version to gcc-4.5 (on x86). > > So my biggest worry isn't gcc-4.5 (anybody who hasn't updated deserves > to be forced, or can stay with old kernels). > > No, my biggest worry is clang. What's the status there? > > I've pulled this, and honestly, the disaster with > -fmerge-all-constants makes me think that clang isn't that good a > compiler choice anyway, but it's sad if this undoes a lot of clang > work just because of the worries about Spectre and mis-speculated > branches. It's not just spectre, I believe you yourself wanted to use asm-goto somewhere in the x86 code: http://lkml.kernel.org/r/CA+55aFyCp-9Qqjcn9wp=VDp2KO7tfYuUMJxVKC75Xxu0wEB5Cw@mail.gmail.com There was some KVM talk of relying on it here: http://lkml.kernel.org/r/6a5f2453-cf51-d491-db54-5f239caa29bc@redhat.com And there's the comment here: https://elixir.bootlin.com/linux/v4.16-rc7/source/arch/x86/kvm/emulate.c#L457 As to the suitablility of using clang, there's also this unresolved issue: http://lkml.kernel.org/r/20180321211931.GA111711@google.com The fact that even without asm-goto they cannot correctly compile a kernel and have sat on their hands regarding asm-goto for the past 7 odd years makes me care very little. And since they need to spin a new version of the compiler with all the various bugs fixed, they might as well include asm-goto in that and be done with it.