Message ID | 20240202035052.17963-2-junichi.nomura@nec.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-49159-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp191807dyc; Thu, 1 Feb 2024 19:53:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuUkNywjaG2B9iYhLvpcmIUsgn26PQPHd1YSzeloheUNtttJCboEOLTABRt/RLaYYTW043 X-Received: by 2002:a17:903:2291:b0:1d8:f6af:77db with SMTP id b17-20020a170903229100b001d8f6af77dbmr1750028plh.12.1706846006304; Thu, 01 Feb 2024 19:53:26 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV+uOO8vWnOoQpP8YrB35Ve62AahvUJdICUGk+7SRZV4pW1ZUmAMH8ObtrVpzR1usMmZF+yLn2zuSx3DzuooIv4qjg0jA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k36-20020a63ff24000000b005d8bc09efbdsi872100pgi.881.2024.02.01.19.53.26 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 19:53:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49159-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nec.com header.s=selector2 header.b="m/4VTl8S"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-49159-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49159-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=nec.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 902FF2835AD for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 03:52:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 690A4F4F8; Fri, 2 Feb 2024 03:52:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nec.com header.i=@nec.com header.b="m/4VTl8S" Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2042.outbound.protection.outlook.com [40.107.113.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 317CCF4FA for <linux-kernel@vger.kernel.org>; Fri, 2 Feb 2024 03:52:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706845925; cv=fail; b=dLhzeZ1L42kekqObbDsqQeo3fKeGRDpPwI7WHwd+yGx8qFyIXZaCK1V2z88m/wLdCh7pOCtYcsgAE1lpCeburECWIoe4ExXRN4n0HRRZ65mKlbBN06RL+RyvOcyEOLq6kbbssQyl03dD6mk0UkYdslFqZFX/GbL/vrqNlfsowG0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706845925; c=relaxed/simple; bh=mh8hlDsU7a5vSSmuUuUMn0lnX6RYT/N3ldMf5+vyTBk=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=Dx/mQPxMRS+CRTCHgCjlT7C0C+pUQ/MsTnNq+EciNrZSu2hgKUuqzY9+jCjk7mx7tyMtilTRsZQ9VNjEOSISIrq/rmz3lsPUJ1YjPP7H2CKkHfTXDbqxJwPfYetrc+4O/eEsMP1hWqzjUAeSF5d3WUxTLk3KodtXNyp7a3VxSIE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nec.com; spf=pass smtp.mailfrom=nec.com; dkim=pass (2048-bit key) header.d=nec.com header.i=@nec.com header.b=m/4VTl8S; arc=fail smtp.client-ip=40.107.113.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nec.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nec.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wep8RHRdXmfH4wddrjp4HgCqHroodrdnlve9axiQK1oZCHhUSLWa4URBxcZuYwn5NkxId+FTZJF/QBLjoo+eEITrVIQe+3MdYQN5VFEMcy4JEVHNCSdrNixQQrH/SE9eAuCkgM13iSzpMvfgGYte7L5zC5X4iwgyEBFE0OUebNF3tR7WT8tIc7cuxZOYt5maq0DYHD2v/ZDmDJO5+Ca8gjK2BcPnwNrtnFstwKY/75xblJkjf1tpR5aY6/ooL7fqOb6uCbj0gOVa9UoTURZd2MhuRkXwCSRDrFPdleKMT1EI3gUmcSXnHcPyWSLcRBsPRtmeRcUPRoFsWhR46AUF8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=L75p96dcJK8isJ9dYgE6R/ovATfdO96AeaCGaSb4f04=; b=NGUvfLcwvk7R9qxtDLs6n5wYe8rNe65kCD6lOwrfSCRCeJJsBRhlxcZCDtP3ev1q5ZHP+6uzbuB5M8aMStFQLkjAfk7m0Cq2Xd14z8Ni6kzkwbQfLN/30ijAEHGdgMjJspP5XSJEYyTaf8y7+2vhsT6bGOhT4fwjfRMvbsiiX/UPIUWrWHMbF+Ks1H6cBruaQgrtDVoWo86srma6f869o7epy2lXPVdTgmTXjD+qz+0uGIYV/wv2DAzTr5k+DJqa69kBwoIE1IHIoG4l1yzU58+RKCBjTimLgI0jPY/l8YtCdGO+j7z4q70zcObfk1mlkW3SnYt3x4kl8fatRy2c/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nec.com; dmarc=pass action=none header.from=nec.com; dkim=pass header.d=nec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nec.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L75p96dcJK8isJ9dYgE6R/ovATfdO96AeaCGaSb4f04=; b=m/4VTl8SLxMaPA2GIoc/xAKDbDRmZ9bvIx7lUP6NQ6XKOuqo8AuOKYYgWFlsQn09DdlUARdw0mue3FTHYFtl54NswTBJ18WbCq9Ace0Mz2Zkuq89aRLNkSl/MENqYVtbzTg4qiS8zE8YPDcWW31qFhbrHqjjZC9WXblWfp+k9gwSDFXnywZ8mfCAQ58aSTFa4MH9D8AIUjodqp82g4c9b/1pW560NEwyv0dvL93iX3s83I0d4E51MvQKghgUUG/QUczgV184B59hdseMl07S9Cqj+S3TKdE5ePhHoC8BVoEgNNSjbm0fbQoqlCDodITfP8qpMe62V9FvFnWPmW1EuQ== Received: from TYCPR01MB8389.jpnprd01.prod.outlook.com (2603:1096:400:15f::5) by OS7PR01MB11820.jpnprd01.prod.outlook.com (2603:1096:604:23a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.24; Fri, 2 Feb 2024 03:51:59 +0000 Received: from TYCPR01MB8389.jpnprd01.prod.outlook.com ([fe80::1d90:2d0b:4619:5a7d]) by TYCPR01MB8389.jpnprd01.prod.outlook.com ([fe80::1d90:2d0b:4619:5a7d%5]) with mapi id 15.20.7249.027; Fri, 2 Feb 2024 03:51:58 +0000 From: =?iso-2022-jp?b?Tk9NVVJBIEpVTklDSEkoGyRCTG5CPCEhPV8wbBsoQik=?= <junichi.nomura@nec.com> To: "x86@kernel.org" <x86@kernel.org>, "mingo@redhat.com" <mingo@redhat.com>, "tglx@linutronix.de" <tglx@linutronix.de>, "bp@alien8.de" <bp@alien8.de>, "dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com> CC: "hpa@zytor.com" <hpa@zytor.com>, "ardb@kernel.org" <ardb@kernel.org>, "david@redhat.com" <david@redhat.com>, "debarbos@redhat.com" <debarbos@redhat.com>, "dzickus@redhat.com" <dzickus@redhat.com>, "jlelli@redhat.com" <jlelli@redhat.com>, =?iso-2022-jp?b?Tk9NVVJBIEpVTklD?= =?iso-2022-jp?b?SEkoGyRCTG5CPCEhPV8wbBsoQik=?= <junichi.nomura@nec.com>, "kirill.shutemov@linux.intel.com" <kirill.shutemov@linux.intel.com>, "lgoncalv@redhat.com" <lgoncalv@redhat.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "nikunj@amd.com" <nikunj@amd.com>, "thomas.lendacky@amd.com" <thomas.lendacky@amd.com> Subject: [PATCH 2/2] x86/boot: Add a message about ignored early NMIs Thread-Topic: [PATCH 2/2] x86/boot: Add a message about ignored early NMIs Thread-Index: AQHaVYsrpr7GWJLGak6aXYXtjEM3tQ== Date: Fri, 2 Feb 2024 03:51:58 +0000 Message-ID: <20240202035052.17963-2-junichi.nomura@nec.com> References: <20240202035052.17963-1-junichi.nomura@nec.com> In-Reply-To: <20240202035052.17963-1-junichi.nomura@nec.com> Accept-Language: ja-JP, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.43.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nec.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYCPR01MB8389:EE_|OS7PR01MB11820:EE_ x-ms-office365-filtering-correlation-id: 6e7ef16f-48bb-4fb9-a587-08dc23a24e2b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: b5hnKD0f/pfqAWD9+PUjLAJ7XJfRhwyUPsknP7WaQC6aPfqUJa0Qv+wTbWXq3M5NENrH/RXlkkcTFe62RWWkEkB+IGvMXcU2ks2DMnUbJQGTfbuzujkluPe4z5zGUbjOkjHYWGEncwbisuieYO2cA1H488VRer1L89Z+qmbH24ZzXtI3K/340Q45yOWfVoQxnuruW83uU0gQPjZ/9Ad5sISVf4Sw7Lltv+cV71rGSCF4U6NUooSJqzXf/B4KfdFaxk4EiNw0NbHTYYGtozRs4wirVNUSMhfDAql909mxgDf+DRyc/LXN4NuIVFAFegRUsPtn9qi0ai4gTZzTYAG4jP1vGol+HS9mM3bjx19Sj9EquM/lI7ijBBQ4IwAs9w33mPtE5SDRqG52162YS+voZ87W8iXpzAkSnQodFTo2+XrQp1rwiXy/K3wgjU4n+QYQ/l70LwtiPDBCkP5h20TG7ecrlcltG6OzH4oGFQ+YQmmq/PHtzmgx/Cx2+6AscLvzAXYvf7+rA0F76KrxBG8HTEU6sfuUwEasqoM4XCsb01saSBmmnedH7bZ6eCPn5dscE7nWRGj7SvZZy5c3WEnWU6rNOA9IXQ8EkaLCttzskRc= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB8389.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(366004)(39860400002)(396003)(346002)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(38070700009)(4326008)(66476007)(5660300002)(66946007)(316002)(966005)(478600001)(15650500001)(6486002)(76116006)(66446008)(7416002)(110136005)(83380400001)(54906003)(2616005)(8676002)(6506007)(64756008)(71200400001)(8936002)(66556008)(26005)(2906002)(6512007)(1076003)(122000001)(36756003)(38100700002)(41300700001)(82960400001)(85182001)(86362001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?b?RlR2cHErN2JLaW41RHZO?= =?iso-2022-jp?b?Y3R3cGRzZzA4MWZuWndwNlgvS1R1bjdoUjMyeW00ajZHY25UMXBMQ2xj?= =?iso-2022-jp?b?RWpFTUVoQjJJcVk1VkxQVUE2QzB4eU1UN0U0U3EzU3dzaFhRUGZNaGZG?= =?iso-2022-jp?b?a0JhTXBuTVRCVFhIMXpVMFJRQlZQZHE2djRnZWF1MmJUOXpTVDl1TzVT?= =?iso-2022-jp?b?ZzFKdFdtTkJnUis5ZndOb0YwQWRXZk9NMFA5Y1lvMDFFcEVKd2hyZVZr?= =?iso-2022-jp?b?dVk4MnJDVE9PNnd2WE1nWnQ5cDhBbnFUTWtoVHQzdmxhU3dsWk0xcTRU?= =?iso-2022-jp?b?V0gxSmxhUGx4SG52U2ZqdDZJeUNmMGlLN1lOd0JoZkpBL3BnOFVSZGRt?= =?iso-2022-jp?b?Q3hrY0dNdUY1UU9KcEZjRERVK3Ryd0FiTnN3MWtJUlY0VnhOVWRyWTdl?= =?iso-2022-jp?b?Y0VKcVRWclAxNTJYZ1JQR0kvVDIvWFNQaGFrYUFHSXN5OUJLbU1QY0kw?= =?iso-2022-jp?b?Wk5vZGxqeW5KdkZDdllZS09IdGZhZUFPVmdZanVmS1FLR3EyZFdMWTB1?= =?iso-2022-jp?b?V3pVUVhxRDA1VlBYZjgrUWZadVc2SFZCL1dMZW1hM1RSUFVScG4vV1Mv?= =?iso-2022-jp?b?d3JJL1dnaDg0L2RtQzkycERHKzhiR3NFcHpSZXg3dW1UVGtoWHRhekZJ?= =?iso-2022-jp?b?U0lvNE0yWFVzMDdZR3BhSHh5UllBV0ZRcDYrYXFpTDNaY2d0d05YSG9m?= =?iso-2022-jp?b?VEZueUxVczhIUnVOUjNIb0RNdHlmYVRrajhRTDdCSngyZk1LU01qV2RM?= =?iso-2022-jp?b?dEZRa1lZeEpVN1pIMjQ1WXFSc1psbTlibUhiaDU3WVp1aVlnK2VuRVdr?= =?iso-2022-jp?b?SHdlaW5aeFBtb0dFMUtKcnZYSnpKWlRJRUpvMjh1RnZ5dzFQNXVkMG9H?= =?iso-2022-jp?b?VkZPaHY4Q1duL2pEaEs4Y3hOSVpiUWNlajdLZVd3K0ZOSWh3WDJxcURl?= =?iso-2022-jp?b?UGpjOEY5aDA5N0J2SzhIOXNZK0F5MVhiY1dwYlJMU2RncTRPdERYUFh4?= =?iso-2022-jp?b?OThjMHNGOHVKeGYzOTZlV1A4SE80OUNIdTk2V1ducVlPQVdsUTgzckV2?= =?iso-2022-jp?b?REx6TkNvazdXcmJCRG5sdWNNWldzQkhnVHl0WENBT2Nzd3VjTHJjQUg1?= =?iso-2022-jp?b?Z1V1QWd5VU5QSndFVTlpNWpieGU3QU85RFNnRnZoaVJyUUxxSStkV3pC?= =?iso-2022-jp?b?OGozRTN2aUhOVG5uOVV5OVRsbTVSUWpPZFJpMTJ0TWRtWmxKQW9XaU0v?= =?iso-2022-jp?b?aTBjQkRvQVU1K083NWNWS3BTUkdYZVBac3g2aXpONlp6VzZZQW1YejhI?= =?iso-2022-jp?b?NnJoZElCZG93RjBKbGJsdWhORURuY2tiT08wcmVJNGRqNEZXWEVhT3Fv?= =?iso-2022-jp?b?empoNXRzR0o3RlN5VFh1K283cE5Sak82dDJGeCtCWjFGRTVSdEtwNmVp?= =?iso-2022-jp?b?d2tGUnhHWFZlc3daSmdRTlhydHVMZlZkS2FISHIwWFRLTzBiSkZCcHoy?= =?iso-2022-jp?b?U3BmNTRkdnEyejlPMHlKTzhJNzhISDdlSUgrYSthNktxd0cwcW9rZTJH?= =?iso-2022-jp?b?YjhIRUczZ2dMT0k3RkYvaE9GZENGckhPYk1YS09LaEJLa2RQUklzNTFL?= =?iso-2022-jp?b?M2s0am5WUmh0Yk1RVEEvTGNocU9kRTA2T1YxbUwvQ2ZOUVIya0dJcUo0?= =?iso-2022-jp?b?OGJpY3FzS2xHa2luL05SMnloRU9YSGFGazNDZFVydFI5b0NmMFhWWWNU?= =?iso-2022-jp?b?NUN5R3ZwSHVnUWdpUVI3YW1naHNxVEl6Z2Ruc1VWNnhGVGJ0WnhGaEdI?= =?iso-2022-jp?b?RjlwaXJOSldOT204cUZkTnlvS3NXVG1lUlE2V3Bxak56MjRtTDhhT2pG?= =?iso-2022-jp?b?SDAxRHR4NTdKYWlidEtxSXJhWkdSVm0wMGUzRUNKTFRkejJWSDdQdXMw?= =?iso-2022-jp?b?TzlTd21pbnQvS2NFemlsdC8raWR4WFJrM1A2YnhleEhvQmJvUXN1ZU8y?= =?iso-2022-jp?b?T0JaMTNTWWtianVteWE0c25YaFp6MGNKZXNyYlg1a2wza3RDdnU4ejlN?= =?iso-2022-jp?b?Q2xCcjdVTHlLM3g3akZiQzJkbG02cHU4WDFXMXpzcmxiTkQzY21KanlT?= =?iso-2022-jp?b?QzNjK2lzc3VJbHZnSnNtdWlscnQ5ZTY4azRaYVptNjFKM1VMcXprbFBW?= =?iso-2022-jp?b?ZTlQalZaUnQ0Ym5IZGV1K2ZZQUpNSVZEYy9GdktVdW5lK2MrZy9YN3hK?= =?iso-2022-jp?b?cWQwYjR2VHJNUXkyZjgzR0tmK0k1MlFRZW5BQWtraW9NNTg0SU5wTmN3?= =?iso-2022-jp?b?OFV6ZUlYSTZZTlE9PQ==?= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-OriginatorOrg: nec.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB8389.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e7ef16f-48bb-4fb9-a587-08dc23a24e2b X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2024 03:51:58.2669 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e67df547-9d0d-4f4d-9161-51c6ed1f7d11 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HLBMSTtYGYQheOBPecpCMHr7lvDT2Kpzjx7NTOReskv2pa12CydL9BJEg+wmuT3yxzsozvELndgRErno3acYCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS7PR01MB11820 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789757757915168800 X-GMAIL-MSGID: 1789757757915168800 |
Series |
[1/2] x86/boot: Add error_putdec() helper
|
|
Commit Message
NOMURA JUNICHI(野村 淳一)
Feb. 2, 2024, 3:51 a.m. UTC
Commit 78a509fba9c9 ("x86/boot: Ignore NMIs during very early boot") added an empty handler in early boot stage to avoid boot failure due to spurious NMIs. Add a diagnostic message to show when early NMIs have occurred and/or what happened to them. [ bp: Touchups. ] Suggested-by: Borislav Petkov <bp@alien8.de> Suggested-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Jun'ichi Nomura <junichi.nomura@nec.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Link: https://lore.kernel.org/lkml/20231130103339.GCZWhlA196uRklTMNF@fat_crate.local -- v2 * Moved variable declaration and definition to the right place based on comments from Kirill. No functional changes. v3 * Removed comment and updated message in the NMI handler. * Use error_putdec() helper.
diff --git a/arch/x86/boot/compressed/ident_map_64.c b/arch/x86/boot/compressed/ident_map_64.c --- a/arch/x86/boot/compressed/ident_map_64.c +++ b/arch/x86/boot/compressed/ident_map_64.c @@ -389,5 +389,5 @@ void do_boot_page_fault(struct pt_regs *regs, unsigned long error_code) void do_boot_nmi_trap(struct pt_regs *regs, unsigned long error_code) { - /* Empty handler to ignore NMI during early boot */ + spurious_nmi_count++; } diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c --- a/arch/x86/boot/compressed/misc.c +++ b/arch/x86/boot/compressed/misc.c @@ -52,6 +52,7 @@ struct port_io_ops pio_ops; memptr free_mem_ptr; memptr free_mem_end_ptr; +int spurious_nmi_count; static char *vidmem; static int vidport; @@ -493,6 +494,12 @@ asmlinkage __visible void *extract_kernel(void *rmode, unsigned char *output) /* Disable exception handling before booting the kernel */ cleanup_exception_handling(); + if (spurious_nmi_count) { + error_putstr("Spurious early NMIs ignored: "); + error_putdec(spurious_nmi_count); + error_putstr("\n"); + } + return output + entry_offset; } diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h --- a/arch/x86/boot/compressed/misc.h +++ b/arch/x86/boot/compressed/misc.h @@ -59,6 +59,7 @@ extern char _head[], _end[]; /* misc.c */ extern memptr free_mem_ptr; extern memptr free_mem_end_ptr; +extern int spurious_nmi_count; void *malloc(int size); void free(void *where); void __putstr(const char *s);