Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5262744rdb; Wed, 13 Dec 2023 04:02:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIFkUEuTlaxc5BMcv3fcst0+iVMn2eWIeOyOdZ2UmVfQQKr0x2n5TC6XFUeYBO3Qnz5vQM X-Received: by 2002:a17:90b:1946:b0:28a:c6ea:c6bd with SMTP id nk6-20020a17090b194600b0028ac6eac6bdmr1069727pjb.71.1702468968275; Wed, 13 Dec 2023 04:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702468968; cv=none; d=google.com; s=arc-20160816; b=UmTdz320NQbfR6BIMSwR0nHZL9yMCkYITEnqcvdWbIHDzdkgHu7bdTJCSVbvzqz3ec awOxCMz4BUoEf2ynfRH/+yhMEA5PoqthV1RC2Ek+90Xt/Iw21F30ZjTuCkPEYdy1C+Jn HCoInb9RzqPJoH/F80DBnkE7NHUm5waqDrNeP4/yEklULVwr29VEKXqHKc+sxtliKnes UJ6H/EyKl+tdHjtNZP+2FXibhxhBCu08HuCh1BRYFuPYDeGpEQBIWCDXtLgtUKkqmEZB ad2sOuvWz1jzpjByvawlbu4INqU/sStSew+AQZnPNmTB6ILxQ/zr7QkX2R/KhploOyi3 mMwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gr1igEk3KyngV43PfV9Ko3UY5P8Hzdqt0WBYmlBM4rw=; fh=5oxmQG5erHzktt+Wr97EXPppaQRbPe6EpGJCK0ALYlk=; b=HRdFxsJc506jbb+o/DoRhMPCR79e2hppSslioAWvTpgNQTmDHa3EsOiEYMVGJ5qm0D J3UDc9J5MZ+0El0xp0/+d0jdQ5TkNqi5dbuz7KvJXGQBAaRnsQFMPha+MRyeg/ggPILo eoO55lmnjk52zohxnLGkRC9pBhgIa7iW8/EZzIz+x/krUk54PojnF+nr30Hf9YNo4xC0 RDW+O0577+efZooKWKN4cuzjmkWN3l29tjk2gvYS+oMJ4XxgOQ337Q4lhaMuM0ggfoHu 2p/6rw9lUzgCyqqXkGwOVL0JkgXWEC8XoOY99LHdTCXzTEesH6Ll3/tfnU8n5jcWeYyV h82g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QVDAqq9L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x7-20020a170902ec8700b001d09249f030si9693197plg.415.2023.12.13.04.02.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 04:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QVDAqq9L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E09338041FD4; Wed, 13 Dec 2023 04:02:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378804AbjLMMCX (ORCPT + 99 others); Wed, 13 Dec 2023 07:02:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235363AbjLMMCR (ORCPT ); Wed, 13 Dec 2023 07:02:17 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17F45F7 for ; Wed, 13 Dec 2023 04:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702468943; x=1734004943; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sU1cY2onLnbpQIDRhHnFwFsomusAlQI0iUZ6jEcMyVk=; b=QVDAqq9LveR4DeOddB+hwdYNRrdeU66DwcWIV437DZMpSA6CuF7llxIb W0mzb2clTHTkoOQ5Sb+yVeG3IRa9P78wWWx9uCul50tcF/Znuqe8dRKIJ UREnuJtUN0lDfANHDJuP4rRdEi84sw6JV3p5qL3XULJomshcDEoSW/N0Y SQWFAFCHDnA5DyPW+PtGYxDhwNUengLImCmmeLjDX84j3db7jcZbtPqOz 8ZFkkGYjTFWCNuuPnCq0mDJYXie6q/4km9WtxwQupvAcoDHL+3jnBfOgx uEYgn6fSVWEhRwLmFJZV4R1ZiOFWAu2OE0EnGEhTzNLhEF6G6UVBVHq/w w==; X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="2093789" X-IronPort-AV: E=Sophos;i="6.04,272,1695711600"; d="scan'208";a="2093789" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 04:02:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="891991996" X-IronPort-AV: E=Sophos;i="6.04,272,1695711600"; d="scan'208";a="891991996" Received: from gschoede-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.33.110]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 04:02:18 -0800 Received: by box.shutemov.name (Postfix, from userid 1000) id 51E7810A4DA; Wed, 13 Dec 2023 15:02:15 +0300 (+03) Date: Wed, 13 Dec 2023 15:02:15 +0300 From: "Kirill A. Shutemov" To: Dave Hansen Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Yuan Yao , Kai Huang , Tony Luck , Arnd Bergmann , "H. Peter Anvin" , Isaku Yamahata , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: tdx: hide unused tdx_dump_mce_info() Message-ID: <20231213120215.64wcryk5k75cymop@box> References: <20231212213701.4174806-1-arnd@kernel.org> <39cf0ad5-bbef-4fb9-81a3-9d2891cc7450@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39cf0ad5-bbef-4fb9-81a3-9d2891cc7450@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Dec 2023 04:02:43 -0800 (PST) On Tue, Dec 12, 2023 at 01:42:09PM -0800, Dave Hansen wrote: > On 12/12/23 13:36, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > When TDX is enabled but MCE is not, the tdx_dump_mce_info() function > > fails to link: > > Thanks for the report, Arnd. > > The only way that TDX has to report integrity errors is an MCE. I'm not > sure it even makes sense to have TDX support but not MCE support. Maybe > we should just make TDX host support depend on MCE. I agree. Silently ignore integrity errors is not good idea. TDX module spec also supports it: "The machine-check exception handler is expected to be implemented in the VMM." -- Kiryl Shutsemau / Kirill A. Shutemov