Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3123951rwb; Tue, 8 Nov 2022 00:28:02 -0800 (PST) X-Google-Smtp-Source: AMsMyM6KkBR+FjV9IgKfBzzkxSU1LFu8Bf9x2985ISCO/T3ZEAfShuiTuZwqN0rcnLQKNZgjdjLR X-Received: by 2002:a17:907:3105:b0:7ae:34e5:e619 with SMTP id wl5-20020a170907310500b007ae34e5e619mr19767150ejb.516.1667896082749; Tue, 08 Nov 2022 00:28:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667896082; cv=none; d=google.com; s=arc-20160816; b=U6ckUHehcXChUc5eVvg7t6rmgfQ83r9WwaxHk7g7VWKlWeQko6s6l+ckwspeOpt8S7 ZwTUmj0nlf0doK5jmbI1T2SCBTNrOmVKY1xFLNLaxTJ4vOB8IdZ9Ttjq9pYHcSQz5RhV 0OuxqLA2H7Hcmk0a7bKuik94NZYbL76hJms5pkyVnhB7skxdMwvy0tpCa9VRlsRexcB1 jJF/JBAF/1YGEukaieBmVesfC7I0up3OGW+ImPKxxKQ3C+Oc2HQA53I+qAEWV6ayhkiR o2XOvsvfZh5VD48pm3jVWJ+UcaMX+ugS59+03od3uQnUGVg7i35OcbZ5PxemNOOWlvH1 yCAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LwCgedXafwEPt8/fNTGd0hg7ywmKoM5jv7NpAinjw0o=; b=w5g8otz0S8A2l4p82gt/kYlw0PHUFd1N2GZ9PcWJ+zDmP3ep6GsORjO6S44If9RWlI cPTnZWtNAxswAgpLQTZDOr9qLcbdLYnd52Y4qhg9rhUbTm3mmVgWdQb2UfOwMM7KmhL5 la+bm5jGchPNaSBDekcaFZEXQIB9OIymihAj6apAUtS2/Cfp9+r9GoIp8t55QD3AW0q5 b/t3r0xOI6gKtdHqp/phJzjcjJGKzbRuZdaB/ezzwm71LY2KMdgpjZVFRiII/SPAweUa 2FtNIDtiRJ1LZsaQspJs+xSCjJAKcDU1TC6SkJvza2F8P6AuwkfhCZTAkg/M2fKVmecB f8zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CE5kURuQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a170906d21000b0078de536a3cdsi10754011ejz.119.2022.11.08.00.27.41; Tue, 08 Nov 2022 00:28:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CE5kURuQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233631AbiKHIJI (ORCPT + 90 others); Tue, 8 Nov 2022 03:09:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233734AbiKHIIi (ORCPT ); Tue, 8 Nov 2022 03:08:38 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 403731FF8B; Tue, 8 Nov 2022 00:07:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=LwCgedXafwEPt8/fNTGd0hg7ywmKoM5jv7NpAinjw0o=; b=CE5kURuQzUML+Y5qGGUHpmZ+Qm 3/swCA5I5TJh09kWiZ+pcJ+7dya9D+wdxNV/UvOfrH/Op5nSb05OI8kfdht2WPzZr2EFYggM9veFL K/iULMowBAADj5VOeE84C/rD6n2MZC/i1DOgpQMAyixVY7mxZkiLU7/nGxjhSAGHDuqUvPweNffgg a/w2odk4WhnkG3hPFUHjq24hlkZ8WCnOvB2Kb6LTbbEo8NEZO4R++BsyioSD93T79KhkCiim3e1CO 5bBhwXMnpQxLJ/k8lcNKcp4pQJCBbpyIrbh9belKIJVRaivJshlcCj8YSRDlgR9xA8njloAersYPM BKDgPDog==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1osJdQ-00A65A-7X; Tue, 08 Nov 2022 08:07:04 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 3B103300244; Tue, 8 Nov 2022 09:06:50 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2347029B98571; Tue, 8 Nov 2022 09:06:50 +0100 (CET) Date: Tue, 8 Nov 2022 09:06:50 +0100 From: Peter Zijlstra To: Dave Hansen Cc: Kim Phillips , Borislav Petkov , x86@kernel.org, Boris Ostrovsky , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Joao Martins , Jonathan Corbet , Konrad Rzeszutek Wilk , Paolo Bonzini , Sean Christopherson , Thomas Gleixner , David Woodhouse , Greg Kroah-Hartman , Juergen Gross , Tony Luck , Babu Moger , Tom Lendacky , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] x86/speculation: Support Automatic IBRS Message-ID: References: <20221104213651.141057-1-kim.phillips@amd.com> <20221104213651.141057-3-kim.phillips@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 07, 2022 at 03:41:03PM -0800, Dave Hansen wrote: > On 11/7/22 14:39, Kim Phillips wrote: > > I've started a version that has AUTOIBRS reuse SPECTRE_V2_EIBRS > > spectre_v2_mitigation enum, but, so far, it's change to bugs.c > > looks bigger: 58 lines changed vs. 34 (see below). > > > > Let me know if you want me to send it as a part of a v2 submission > > after I take care of the kvm CPUID review. > > Thanks for putting that together. I generally like how this looks. > > I think it probably goes to a _bit_ too much trouble to turn off > "eibrs,lfence/retpoline". If someone goes to the trouble of specifying > those, a warning or pr_info() is probably enough. You don't need to > actively override it. Not, even, just do it. User told you to, it's not technically impossible, so just go.