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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DF89C433F5 for ; Tue, 28 Sep 2021 13:04:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 567C1611CB for ; Tue, 28 Sep 2021 13:04:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240774AbhI1NGX (ORCPT ); Tue, 28 Sep 2021 09:06:23 -0400 Received: from 8bytes.org ([81.169.241.247]:40054 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235776AbhI1NGW (ORCPT ); Tue, 28 Sep 2021 09:06:22 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id BA62C208; Tue, 28 Sep 2021 15:04:41 +0200 (CEST) Date: Tue, 28 Sep 2021 15:04:36 +0200 From: Joerg Roedel To: "Kuppuswamy, Sathyanarayanan" Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Paolo Bonzini , Juergen Gross , Deep Shah , VMware Inc , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 04/11] x86/tdx: Add protected guest support for TDX guest Message-ID: References: <20210903172812.1097643-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210903172812.1097643-5-sathyanarayanan.kuppuswamy@linux.intel.com> <20fc6806-0c46-15d6-930b-6b4e90dfee6d@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20fc6806-0c46-15d6-930b-6b4e90dfee6d@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 05:56:03AM -0700, Kuppuswamy, Sathyanarayanan wrote: > This will only be called when CONFIG_ARCH_HAS_CC_PLATFORM is set by a platform. > So it won't be called for all platforms. Yes, but distributions will enable this in their default configs, so the function call will happen on every Intel machine, even on bare-metal.