Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6215880ybv; Tue, 18 Feb 2020 12:11:32 -0800 (PST) X-Google-Smtp-Source: APXvYqzasMJzGpXuOhQXagw79MkHVg1q+s5Dm/nPBLp8+Xs2jL3OJju60Z8YiWmsqPw+UbXdXj7+ X-Received: by 2002:a9d:3b84:: with SMTP id k4mr4149783otc.18.1582056692645; Tue, 18 Feb 2020 12:11:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582056692; cv=none; d=google.com; s=arc-20160816; b=jrEijI4Z8ihlDjneSk1XvFOPKcxiuL2350bj6yNnjK4/p46Ec+E0eweVKWPaZfkuBk DITtPbwyrzfkq07rRuRYXdCPHXUq9doCH3cwx2cfifnCPg1hbAqzE8u2RXRwLr/TT6MR SVSc4w0n3DjQnhAgQnwpuVptTyb9xiquACLAPq3Yeakse9eX8DagFIYrQHgZ6aeutnOv MnlceLQuVAR723tnqtou+qaBL9Iju50zzp28ZS494u2v9sMGqV9UIFTACNpF59dQ+y3D ISFRWHeoodZGbnmQcNWfhGZCsFylTv7nT4BFjUl7R3QrVjXg4qEAanpyAQv8qmoyB009 ydMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=Fd1OUs9YkIhvdpq7UHZ8GwguFJyPn166Pkhsj/Acvtw=; b=N5rElIHVZ5IjE7yuPmRGNPW2qhMS8X4Vay5VeaY5AktJPCQtti9GYbwRmJ+qhecPJ8 cOPU3kzfw/6lYlSF/+dKJwMX0H2HJo6kMwWvjvfghQ+y/YCbgT4SGnCB8fJ4tKbL6LPF e4R/idOEITYKw2wKG/gRGG1sNuPgBGht1PxrGxTat2cpoiCpyFE50sgA07ohkUROB4CI zB2qoBAZWJzZ3fN+hDNV6GK5QKozCYOmR6gnyWxfMXqbDMpi/8nOzCqi9w3jrKBD2JCZ xYnzxEHm03R4c9do+zTpCJEu29SzwgGJIaeoGB5LM7E2Rc3oIXNeODx46+H2oClm2Xwy eZlA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si2262425otp.69.2020.02.18.12.11.19; Tue, 18 Feb 2020 12:11:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726551AbgBRULN convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Feb 2020 15:11:13 -0500 Received: from mga07.intel.com ([134.134.136.100]:2984 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbgBRULM (ORCPT ); Tue, 18 Feb 2020 15:11:12 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Feb 2020 12:11:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,457,1574150400"; d="scan'208";a="382569617" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by orsmga004.jf.intel.com with ESMTP; 18 Feb 2020 12:11:12 -0800 Received: from orsmsx116.amr.corp.intel.com (10.22.240.14) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 18 Feb 2020 12:11:11 -0800 Received: from orsmsx115.amr.corp.intel.com ([169.254.4.100]) by ORSMSX116.amr.corp.intel.com ([169.254.7.108]) with mapi id 14.03.0439.000; Tue, 18 Feb 2020 12:11:12 -0800 From: "Luck, Tony" To: Peter Zijlstra CC: Borislav Petkov , Steven Rostedt , Andy Lutomirski , x86-ml , lkml Subject: RE: [RFC] #MC mess Thread-Topic: [RFC] #MC mess Thread-Index: AQHV5oFaNSfU2AXDXU6dRUAZO7v/0KghQszggACi3QD//3tUsA== Date: Tue, 18 Feb 2020 20:11:10 +0000 Message-ID: <3908561D78D1C84285E8C5FCA982C28F7F57BDFB@ORSMSX115.amr.corp.intel.com> References: <20200218173150.GK14449@zn.tnic> <3908561D78D1C84285E8C5FCA982C28F7F57B937@ORSMSX115.amr.corp.intel.com> <20200218200200.GE11457@worktop.programming.kicks-ass.net> In-Reply-To: <20200218200200.GE11457@worktop.programming.kicks-ass.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. -Tony