Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp639033ybv; Wed, 19 Feb 2020 06:21:48 -0800 (PST) X-Google-Smtp-Source: APXvYqza3fNd5txbUv+s9xVUaLtgf2j1Ps1wBb9Q/2iJak88tln77DKFqV45idR+eGHJHfL3EPXK X-Received: by 2002:a9d:7ad9:: with SMTP id m25mr18861556otn.13.1582122108216; Wed, 19 Feb 2020 06:21:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582122108; cv=none; d=google.com; s=arc-20160816; b=bnEtlRUdQu3lk21RqCOQNdVlWiI1z0rNVTurcr0lwWdUXV0k0DxMc2DAyi0Hbmut8u hrCenhZDSLMYCDFzXbYqfnSRn+tkIi0TOcsIN8qiWEzu4yLXK6VWcW73GjjXfld8zsBX VsRuJEP12auP63rANyh+aJrE51umwz37j6B+Db48eMQ2fmUBtUjvX/VG7Xw/FsYhomqD NNbaIrMnRftI6MzPSvZ60Y081Qm5gFXfQIDDWI3wcvMJUvhCCD7PSD+Nw6DsjYOm+Iw0 WQCks/R8EBzIiK/3NTLaZ4cT5w6Bnj5ChtnvDzHJjtFhNywmLv2uFZDQXTvYSZBMBWd9 B2Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=yrJ3EHICj8LSBS0bUOSAVPhcnpyrgxYMegO1m1WbBG0=; b=oyxORjuMg4VjoADBGuWyN6fMjKGIbBUeQlDFsvJx4xevwokY0Ots5v07rdvEvKUy8t S+ycdWSGTQnwOGl8SSvUFsRWtxw++DXtZV4ZKyvXLbwoN9pw5rBtVu2sQTegrirboijC bvQGmUDMjpvljzk/gNqk91KhRmqentMnS5nqD58KJHWDySDyd80AGnWwb24GS/KfbkKu ojtfl6esCSW8pFIfC7P7utzyiwEk3N54sJye4JetQ6Mkzm8Q/QFkNySllVGtkyXdyFcd FfoXf/BNl1ii8zRtIfAlOLQFuvrXaqYiOnQ9HN1nFhrwAvBS9D0GDGIlrKHJFLxD20DW u2+A== ARC-Authentication-Results: i=1; mx.google.com; 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 e1si1249353otr.8.2020.02.19.06.21.35; Wed, 19 Feb 2020 06:21:48 -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; 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 S1727786AbgBSOVR (ORCPT + 99 others); Wed, 19 Feb 2020 09:21:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:51100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbgBSOVR (ORCPT ); Wed, 19 Feb 2020 09:21:17 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B03B6206ED; Wed, 19 Feb 2020 14:21:16 +0000 (UTC) Date: Wed, 19 Feb 2020 09:21:15 -0500 From: Steven Rostedt To: Peter Zijlstra Cc: Andy Lutomirski , Borislav Petkov , Tony Luck , x86-ml , lkml Subject: Re: [RFC] #MC mess Message-ID: <20200219092115.3b3cccd9@gandalf.local.home> In-Reply-To: <20200219081541.GG14914@hirez.programming.kicks-ass.net> References: <20200218173150.GK14449@zn.tnic> <20200219081541.GG14914@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Steve