Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6234665ybv; Tue, 18 Feb 2020 12:35:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxwKXzMAakkUiU0sMffBGjaB6AWudBi4VQSAivQVKDW+qEsUQ+4emegYvsGRhLgTSeFO5mY X-Received: by 2002:a9d:3f5:: with SMTP id f108mr17607448otf.103.1582058137457; Tue, 18 Feb 2020 12:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582058137; cv=none; d=google.com; s=arc-20160816; b=gLwHMybwXGayJphbp4s6caEWRLlIolRUwP3kszlEqeLiqrwJYpmFmx6ANBYpS/1XiM QgTuqdTFMSxXwYY2Nb8g9HsqMT7+ZyfpWtrpksDWd+680wKI7a8PYydQpsQCF8U0KMVG 4iOFZUNjF69YBidNY3S9Mb1oJkYOvg8QwsVnWLiGVFogXrPXJnpSo8wTeffMrYlAMJt1 y3fpR9q68ChOxGiDW6zohTKoWIlAZsbG6VluCgBCU5EkXWepcQJQkaly9iX0VOAi9+pK jxH8+W4Vo5kEHJQCbOnyTO5+VztFsblLURax2S68xCzpW7Ke809EKtyEu40tq5JvkIts O2+Q== 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=rrgE1QmBht6appaFA2bTRzgOgoL6Gn0NcwciZG8klY4=; b=t8XLSif50wjHoGRu214oFn5yKo/ouSOOJZERJuS0SJHIw9Z/o22Q9JxwgRmII14RJg gAlPHYL7Gw8clZ+9vjdtnnS51r5m1QujMZ2KeQHGdLb+k3Cf0/pr/WkDtKylIwFFNa8a QAfkqCCvO+XG0VLXw0T1OzjpCCTA34nYvcFXS9ADtHDyLjKLRCZaYR4x4f7+RLW4EGM5 LCqlbP+L9o//Is001bypJtnPQLsxUaytpKhANYWsf4VjfJFR1Q/JKLYOn7/ohrAmONbD KaJZPJQrBtA+HYY0REGhc0bBEvOHe1EdgqF74Ql/jurTzviDXVJ9HPDiOcqEBsNXa/ka hypQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=abGp84Ch; 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 c5si2409641oto.74.2020.02.18.12.35.24; Tue, 18 Feb 2020 12:35:37 -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=bombadil.20170209 header.b=abGp84Ch; 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 S1727161AbgBRUeK (ORCPT + 99 others); Tue, 18 Feb 2020 15:34:10 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:42376 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbgBRUeK (ORCPT ); Tue, 18 Feb 2020 15:34:10 -0500 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=rrgE1QmBht6appaFA2bTRzgOgoL6Gn0NcwciZG8klY4=; b=abGp84Ch0KgWucvvwcavQzPQNv fP0B8sExkdZUqIZxOYXb/eWvUJKK89l2HNvreGyDbqCd0nx/lfhGn8DZjVcXoagy86sONTn+AmctG bjKzWF5P3LoxwmTNb9vXstPPyid+q3KLm1XG9HFwHKq4awKY/XZYt9rUK3jUxHG+wiQh2+FEtkMak oyLPGKTC7yQYorrIRz+P2vBGk9lHlBUioiHgLVxsM3wVyALVhd89lZKfQRDGEWa1qjC6rwPId9yrz ygv7ummzal2sB6SK1qL/kU5tJ2qtohr47Lw8zUXQIHnG605NwyCrg/CU6SOr4+IsRztxdYp2kLYKp 7ZSnwYzw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j49ZH-0006MM-0O; Tue, 18 Feb 2020 20:34:07 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 12FFC980E56; Tue, 18 Feb 2020 21:34:05 +0100 (CET) Date: Tue, 18 Feb 2020 21:34:04 +0100 From: Peter Zijlstra To: "Luck, Tony" Cc: Borislav Petkov , Steven Rostedt , Andy Lutomirski , x86-ml , lkml Subject: Re: [RFC] #MC mess Message-ID: <20200218203404.GI11457@worktop.programming.kicks-ass.net> References: <20200218173150.GK14449@zn.tnic> <3908561D78D1C84285E8C5FCA982C28F7F57B937@ORSMSX115.amr.corp.intel.com> <20200218200200.GE11457@worktop.programming.kicks-ass.net> <3908561D78D1C84285E8C5FCA982C28F7F57BDFB@ORSMSX115.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3908561D78D1C84285E8C5FCA982C28F7F57BDFB@ORSMSX115.amr.corp.intel.com> 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 Tue, Feb 18, 2020 at 08:11:10PM +0000, Luck, Tony wrote: > > Then please rewrite the #MC entry code to deal with nested exceptions > > unmasking the MCE, very similr to NMI. > > #MC doesn't work like NMI. It isn't enabled by IRET. Nested #MC cause an > immediate reset. Detection of nested case is by IA32_MCG_STATUS.MCIP. > We don't clear MCG_STATUS until we are ready to return from the machine > check handler. Ooh, excellent! That saves a whole heap of problems. Then I suppose we should work at getting in_nmi() set. Let me have another look at things.