Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1994883ybb; Thu, 2 Apr 2020 11:05:47 -0700 (PDT) X-Google-Smtp-Source: APiQypLxQRqej7rf4foXTvizOrfPzacOKj93AJqR2e93aCkh1FKBgLY1jorZcJOeOz21bJAXDClh X-Received: by 2002:a4a:a64b:: with SMTP id j11mr3807094oom.59.1585850747310; Thu, 02 Apr 2020 11:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585850747; cv=none; d=google.com; s=arc-20160816; b=01iQlTFp8qUJNKzx4ThCbIlMsvZSNNS0nwUAMYs9kRu9e4DFUb420fxuGvpTN5nvoK J003EwlZwW5suuMztNqJd/j2MQJ4dfp3/Mfc8qMob1FGeFSa0WoRKX69ngU9T6QH1U24 CSVQ96PuLG1dg5R/8XNakv4ibOVL7k+LybxdiwJb2yZFiJslpWuShok9MxG0ASiu7L3X oDxZMhLQiwQhQeht30i2P4GY11ZKZnlxQvkwqugUU7ucKFdLMspfFdFR8iAfJCThLV5V DfZyEQs2XZC3NYSOpLavnaqx8hlDNIIXMbiOYquwROCto+eIV+bNWfaUuFL2l28XFEwM KhGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=a/KDs39ormLqYNyLDXxwevKak24hvsf4Webm/o9jua4=; b=Sm2uZVX98K4Que0K4arGNUH+CcERY0f5ijyWPdi0uoN5PtKA6NXfpk6oEW6+hTM7tZ JGjAqdt7D3c1lTgsQyKohG5cMBdkualU5CatmKQnGwEfJdiGi2NemuYuMIuJLoqbys5M pthzDktgBK+an458/Y2EqbQexPBEmW5odPtuml9JSjCucyarwsED/yrjvnIp6SQsm0E3 5UpFcnIw5p9SdtANPyIF7FNwdD/sZ7ikYeBRr2QQF5VOimjc5z8N4k2H64SOL4vWb/ao 6X2sw3P+0xaZrc3umH7d4qeMMe/Y3YFJiD9r2tbfDNeR6GH9oBSTDLbuuxNLZ7cQBcTd 7cWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="GGpF3sT/"; 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 h2si2201656otg.290.2020.04.02.11.05.34; Thu, 02 Apr 2020 11:05:47 -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="GGpF3sT/"; 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 S2389689AbgDBQ0G (ORCPT + 99 others); Thu, 2 Apr 2020 12:26:06 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55232 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732214AbgDBQ0F (ORCPT ); Thu, 2 Apr 2020 12:26:05 -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; bh=a/KDs39ormLqYNyLDXxwevKak24hvsf4Webm/o9jua4=; b=GGpF3sT/GT1ehshCwxDJ11YFlz GcGkq2F5vRMTQuZwqK5zL5KoB86HbBCLJYbf+WpUhglk7xWQlpNOlgQjCxqmQVyS9IfxCbeUDysJI akM7TfiHrFikfOd1j7HJc++qyNZDTUl1yCT4UHxHxslyWiYrIZJo04oPtUAPsFn4dtFxR2Uambvop SvkN+r8qhf6ZvvNMi0jMFmlDvPiVUTHATU8Ipab6XH8hQI/NZEjZFiTXByCnbOPzq3zYM1nYePyFU NzzwOXY1ITC+f9+GuXYf43Nlk/m6nfNDRLdpKYIAsmTasltFzreB/LuUKpwP2uuWS8eoLxMeRQF1X qy1V0oDQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jK2f9-0000hd-9t; Thu, 02 Apr 2020 16:25:51 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id EC0B63010BC; Thu, 2 Apr 2020 18:25:48 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 99DF12B0DC2C1; Thu, 2 Apr 2020 18:25:48 +0200 (CEST) Date: Thu, 2 Apr 2020 18:25:48 +0200 From: Peter Zijlstra To: Xiaoyao Li Cc: Thomas Gleixner , LKML , x86@kernel.org, "Kenneth R. Crudup" , Paolo Bonzini , Jessica Yu , Fenghua Yu , Nadav Amit , Thomas Hellstrom , Sean Christopherson , Tony Luck , Steven Rostedt Subject: Re: [patch v2 1/2] x86,module: Detect VMX modules and disable Split-Lock-Detect Message-ID: <20200402162548.GH20730@hirez.programming.kicks-ass.net> References: <20200402123258.895628824@linutronix.de> <20200402124205.242674296@linutronix.de> <20200402152340.GL20713@hirez.programming.kicks-ass.net> <725ca48f-8194-658e-0296-65d4368803b5@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <725ca48f-8194-658e-0296-65d4368803b5@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Learn to trim your replies already! On Fri, Apr 03, 2020 at 12:20:08AM +0800, Xiaoyao Li wrote: > On 4/2/2020 11:23 PM, Peter Zijlstra wrote: > > +bad_module: > > + pr_warn("disabled due to VMX in module: %s\n", me->name); > > + sld_state = sld_off; > > shouldn't we remove the __ro_after_init of sld_state? Oh, that's probably a good idea. I can't actually test this due to no hardware. > And, shouldn't we clear X86_FEATURE_SPLIT_LOCK_DETECT flag? Don't think you can do that this late. Also, the hardware has the MSR and it works, it's just that we should not.