Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp680744ybv; Wed, 19 Feb 2020 07:08:07 -0800 (PST) X-Google-Smtp-Source: APXvYqw3J3TNgIUf9m3bBQbEAkhcA6Pp4HNAV3cf/5256gFpcO603JK8UHREwzMIEIrNx1zM3wLl X-Received: by 2002:aca:d954:: with SMTP id q81mr4885791oig.157.1582124887621; Wed, 19 Feb 2020 07:08:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582124887; cv=none; d=google.com; s=arc-20160816; b=oLOXBfcbAee+/E2QMWSQTPNEJw/YX4I+fKeijS8YkezVkSpoM4Ep5PD0stpO74GMAu duqsi73n3C7lsJXqbK6aEfhwJWjUBP1pHYPBdimp/ETucF0FpU8RK0tDQ5HeN9gkaDi0 2EUw2eBxLMDl4LnrX7lvBfbDiiGzP0bXVYS6A6OoT4vSpHC0IB7ipble/e9mAYm5n1Bj SakXXc3Ay3tzMNwWIzvrIfr81SzZiKs9atblOIKjhW6Hfg0UuTXjGU2O819db6q9Ao6h MOMB/j2tEwgR4fUrDJbpQnEWbr0X1WKaLf/1Ipymw6UX9q2Zuzqj6vZ/quhAlHLSjFo3 m2Sg== 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; bh=CmpNQkTd3vKnTq7/TH/RtMx5e3zbH2m4y+mEOQjw6BA=; b=KnRC38La+olBPiskFDoTLwBCoMPbVgtUv8Zs60q4EIjJ9I7QJ8ZCNafxl1m6WVEaJG +j+zi0als/bU1rGemHhQIf+TocfAinrevzl1tdjA/crBqIyYQ246BzgXUmbc/J6Rb43G 2yyiOf3XEA47E2nVLLHrtCw2YlMc/pQk+UFv9yGKcKA8t8YtrQP0znL+KAuIo2xeXdZS 0MEDVoo2GHOyUKQqQ6GYz6Q9KnbRvzm8CaYpD6WrpJZ4SCKhKpuHGvk+7A/Qntduv2/+ BovwRjFt5H0jYf0J1POINq+xDRb4xI6PxWVxdK9jaiKL6NgYhLJJ5ejE1ixGmaZQNWpK PUqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=1YTSyvj8; 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 c196si9494319oib.36.2020.02.19.07.07.54; Wed, 19 Feb 2020 07:08:07 -0800 (PST) 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=merlin.20170209 header.b=1YTSyvj8; 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 S1726760AbgBSPF1 (ORCPT + 99 others); Wed, 19 Feb 2020 10:05:27 -0500 Received: from merlin.infradead.org ([205.233.59.134]:50850 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbgBSPF0 (ORCPT ); Wed, 19 Feb 2020 10:05:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=CmpNQkTd3vKnTq7/TH/RtMx5e3zbH2m4y+mEOQjw6BA=; b=1YTSyvj8g/pdWWys4wIaEv5bRJ qJyFJIjYB4oK5I7Iy0dp2rthMCM03ED3LLgk6XlGpU5goYtIqBYawszo4VXN+zS/vHonBsS9RjbZl 9rgiiswz71jqImDv0ysKRU1jeYLEA/NDfJcjym7gT3//6hiskVsHQZarFROJQD1jmOGTZ16p+EwnT mJ+CZwF6A4sO3s3kZRli9MhFHjLNsKJDZBjtlzB9vNXmXrc6HK66RGK+DA3IrpAZuIUF4uYTMy8zj TtvL2T9s+da9RUlqLsEVQv6hJmk5qCJ4YIJ/bsEuaLy+3+GoDSLy8iLbTp6QqaG2j9JHvm4zykXEq p4CKmuAg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4QuU-0007V7-IS; Wed, 19 Feb 2020 15:05:10 +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 5D9A1300565; Wed, 19 Feb 2020 16:03:15 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 58B032871C337; Wed, 19 Feb 2020 16:05:07 +0100 (CET) Date: Wed, 19 Feb 2020 16:05:07 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: Andy Lutomirski , Borislav Petkov , Tony Luck , x86-ml , lkml Subject: Re: [RFC] #MC mess Message-ID: <20200219150507.GD18400@hirez.programming.kicks-ass.net> References: <20200218173150.GK14449@zn.tnic> <20200219081541.GG14914@hirez.programming.kicks-ass.net> <20200219092115.3b3cccd9@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200219092115.3b3cccd9@gandalf.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 09:21:15AM -0500, Steven Rostedt wrote: > On Wed, 19 Feb 2020 09:15:41 +0100 > Peter Zijlstra wrote: > > > > > > > Tony, etc, can you ask your Intel contacts who care about this kind of > > > thing to stop twiddling their thumbs and FIX IT? The easy fix is > > > utterly trivial. Add a new instruction IRET_NON_NMI. It does > > > *exactly* the same thing as IRET except that it does not unmask NMIs. > > > (It also doesn't unmask NMIs if it faults.) No fancy design work. > > > Future improvements can still happen on top of this. > > > > Yes please! Of course, we're stuck with the existing NMI entry crap > > forever because legacy, but it would make all things NMI so much saner. > > What would be nice is to have a NMI_IRET, that is defined as something > that wont break legacy CPUs. Where it could be just a nop iret, or maybe > if possible a "lock iret"? That is, not have a IRET_NON_NMI, as that > would be all over the place, but just the iret for NMI itself. As > that's in one place. I don't think that matters much; alternatives should be able to deal with all that either which way around.