From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 346F5C433EF for ; Mon, 20 Sep 2021 04:57:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 00B9860FF2 for ; Mon, 20 Sep 2021 04:57:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230436AbhITE6l (ORCPT ); Mon, 20 Sep 2021 00:58:41 -0400 Received: from mga05.intel.com ([192.55.52.43]:51037 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbhITE6i (ORCPT ); Mon, 20 Sep 2021 00:58:38 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10112"; a="308606107" X-IronPort-AV: E=Sophos;i="5.85,307,1624345200"; d="scan'208";a="308606107" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2021 21:57:11 -0700 X-IronPort-AV: E=Sophos;i="5.85,307,1624345200"; d="scan'208";a="702257181" Received: from agluck-desk2.sc.intel.com (HELO agluck-desk2.amr.corp.intel.com) ([10.3.52.146]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2021 21:57:10 -0700 Date: Sun, 19 Sep 2021 21:57:09 -0700 From: "Luck, Tony" To: Borislav Petkov Cc: Yazen Ghannam , X86 ML , LKML Subject: Re: [PATCH 2/4] x86/mce: Get rid of machine_check_vector Message-ID: References: <20210917105355.2368-1-bp@alien8.de> <20210917105355.2368-3-bp@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210917105355.2368-3-bp@alien8.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 17, 2021 at 12:53:53PM +0200, Borislav Petkov wrote: > @@ -126,7 +123,9 @@ struct mca_config { > ser : 1, > recovery : 1, > bios_cmci_threshold : 1, > - __reserved : 59; > + /* Proper #MC exception handler is set */ > + initialized : 1, > + __reserved : 58; Does this __reserved field do anything useful? It seems to just be an annoyance that must be updated each time a new bit is added. Surely the compiler will see that these bitfields are in a "u64" and do the math and skip to the right boundary without this. -Tony