Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6754330rdb; Fri, 15 Dec 2023 07:32:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGYVXj6wPLKq8ZFRflIIoh4YTMwL0sz9uM+8tSHqCdQ3hhbXW2shjoNeE5QJzLduBWcILG X-Received: by 2002:a17:90b:4a51:b0:28b:3f3e:b30d with SMTP id lb17-20020a17090b4a5100b0028b3f3eb30dmr197347pjb.57.1702654340810; Fri, 15 Dec 2023 07:32:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702654340; cv=none; d=google.com; s=arc-20160816; b=lrJqyjkk3rKnpaMj+qcNHLx3xR3C0bMXILAn38fEABn9fIVacIxl9Vb8AmtWvdNgp2 B4QciJVd5gSl4634ZrIRAbNipHcEhcvNeXsCyVpqoV3jJTzFF7y9tW31cUo1pHVmJAhe EMuiRn1FVDaGIrctisAcyT90aEFwOkvpCQyUUhqMbR6+m/YswEQGoqrSV4fC7wrC4ux+ Zkvkb3n5mzGZxO9aM1RLUh5fmkSYUTN8W5I2ply3Y+yv1EmeCrbWZdMA0SZJ9qZ2X3S6 +aXYjy+8YOg0CHjVVe6kTaxdPGiQsfPTj690p0bMFCHdDXtBnqCet3SI219W/0t+cCb5 BqRQ== 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=kID6XEZVJ5WdI6iDkAqV9iTzJ5DB/DCJdjzBL4bp4HY=; fh=OUefGlMJpHTQglQuo3R4BCMQpA4iz7VBPYsUxOmZlFg=; b=gm4jjCaOn3j+mvqUgyJHT3MFUMAbg8Lg784A83BNUoEUA6TlTRHOsP6UdnCiY6snlq 4G8RTVT+Y7Ys+gC2S7Ukr1pw16MOGz8XwmQqu6OqL7AtbZlrAgSWIbgqf4O48Gcdidtq N606am/K6x1OyWHhxZls5tS5PhLPDV19D2lvyncU0ZA7WJF8pt/g469gQhrqstgxV41o g47EMK/gCE5e8ZGAk250cImcdYxuJ6X66iNZlmE/Vi+NVKf+V6NzXy5fWLfWctEhkpYo sJVMJdpeRJwq2n5h/hZlGcLAOJNsyHttnPS9IgUcZ3+mOiyKjCH0nhf3FGjBGqCyB7Jy 0ePg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=e97tb7KH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x20-20020a17090aca1400b0028ac734158asi5965705pjt.123.2023.12.15.07.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:32:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=e97tb7KH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 21627804C6FC; Tue, 12 Dec 2023 13:46:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377577AbjLLVqe (ORCPT + 99 others); Tue, 12 Dec 2023 16:46:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377571AbjLLVqc (ORCPT ); Tue, 12 Dec 2023 16:46:32 -0500 Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28C10B0 for ; Tue, 12 Dec 2023 13:46:39 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 41E6E40E00CC; Tue, 12 Dec 2023 21:46:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5OLpYQ0Fegld; Tue, 12 Dec 2023 21:46:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1702417593; bh=kID6XEZVJ5WdI6iDkAqV9iTzJ5DB/DCJdjzBL4bp4HY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e97tb7KH9xOJRQoMoYbJqsC4BwJRZ0d/od08zGTCQGqcp2TgWL/ydg20O6KT5lix8 USva3x1RWRaXCgQbHJwoO/WOmtpcQ6YzwVSjP/99hB+iJ0cxSDWG+Hcj+gX2/oWDNq J7bwGRv0kpFl36rC38EsZzGdM7qejeRbx34J2B47kOzpY9LIVFvbJMpPFpj8OBtzkG G1L/XNqWB5Ue9C4GPjeCDvWn1yqqkfzWF4WX9a2XuYm5EGvPmg22VgOVw0mi+2czZc Uq2m/4y18WRQphdFYYds79c5hwgl/Q0tWcFl0CBEeKEzfRMPZZ/86vUOnx/Ra3cjjW a5w+dUaRsEVnjNTIwD5du7h71dGxlIsk9+BBnW7qDhYzXA4r+pPHEs8ohAkFOnIakN ZBknbnoJ5BsWJZL5EFP6Ob6KSVuhzCqO/booYPxEILFt2YXEI3Hp0ovD3/k1nAXFm3 vxPvXuhERZACVYt8h/EV2rNbbvwBweILIljG0ZVzCFqwknGo9l9B/Ych/lO9OnDiWY ZE/c70ALbk6U+wf4CSXfzP/mbnBfiArdnDh3k1CxM2zAbupY22PgXN31ShJcqsEtHN SjehOVBFUtppW2clrLZ7h8uW12RckK8cmzuxXC0rNiSfcONeJMxFsbg3I0XmKjq/MQ Yczic+wbHuk6NNA+MHa1dh/g= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 26F4640E0140; Tue, 12 Dec 2023 21:46:18 +0000 (UTC) Date: Tue, 12 Dec 2023 22:46:12 +0100 From: Borislav Petkov To: Dave Hansen Cc: Arnd Bergmann , "Kirill A. Shutemov" , Thomas Gleixner , Ingo Molnar , 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: <20231212214612.GHZXjUpBFa1IwVMTI7@fat_crate.local> References: <20231212213701.4174806-1-arnd@kernel.org> <39cf0ad5-bbef-4fb9-81a3-9d2891cc7450@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <39cf0ad5-bbef-4fb9-81a3-9d2891cc7450@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 12 Dec 2023 13:46:49 -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. ... or provide an empty stub of tdx_dump_mce_info() for the !CONFIG_X86_MCE case. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette