Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4251217pxb; Mon, 4 Oct 2021 21:51:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCcSLIIMh3fbj7CXR7mUI6drHoqo1xznW/p07eE67tuf+nzFPA9O4vxWZfFjsQlyEBGO8p X-Received: by 2002:a05:6402:3489:: with SMTP id v9mr11838882edc.130.1633409483995; Mon, 04 Oct 2021 21:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633409483; cv=none; d=google.com; s=arc-20160816; b=svf5Xvcp9k0/JrbBzq7milbqCbqNyK541X9PmzRfnbB8PVrygjbnumlEQGUldkqGjN CpDpUakavBqMKOl0WDiC6F1zLsFCCVl46MchnfD+5xWg0lIuGb8kV2eGm8brCjE5cdXB lQBNCa0LiMXVFy/YaHWbAf5r7JwVcfJVXrB4Ql9hBsuUJR03etMXtlBd2GVJwU0pIPve U9H7aoYcLqpsolY908hD9C25ii5fBGFvpW7odIgm36LQ/sMfu9IOR6vsqoJAewNdDhdq O36yUQmTkEAVDVe4bjo345h9LzP2CEMr/pVaitv3gApW/sQvFw69wAHD0/zv2TuZVnkF ymkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=PhbjEGM2n1Fc82VkHwTU+uA5vUT19ZB/Op/qghm6Xsc=; b=NctbtDBDBGOUAMwK06SLj+Xbo6TAleXDpVu6h0WKApnJMWDrBuLg2N3N/wUU1hUa4I FW/DsyzCt77ch8U2Cpw80xwp03+xoXdkL2vPjtVhIxFNGO4NDSAY5SmHZI8+q2Gqi2z7 /UWC0Fr2hSUuxnihhPG++s/ndZ71h9+l+yDo/G4qEei86jKwnzuSkXpksk0lKbh2YL/h CllCBg1cVwfWVWUuZAUvunoJ5dxgaFfZeK7V+NKSZJCONEX8/WOlQATytKPn7WMovO5c /579kWXK5JT+EWkC/+usOtlW69g17C71XP9PcINF8NhqxxGIqFd65MoHkgVJ45XzsuG0 ZCmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=I6itD9q0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si8180781edi.454.2021.10.04.21.51.00; Mon, 04 Oct 2021 21:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=I6itD9q0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231682AbhJEEtW (ORCPT + 99 others); Tue, 5 Oct 2021 00:49:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbhJEEtW (ORCPT ); Tue, 5 Oct 2021 00:49:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71CADC061745 for ; Mon, 4 Oct 2021 21:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=PhbjEGM2n1Fc82VkHwTU+uA5vUT19ZB/Op/qghm6Xsc=; b=I6itD9q01fvJJt6IfSbshaZPne fQ3dGyoUfKiawkdRty5NQMZgvqZ8ON3zaunInA/iMEVL5yxzCbszmvbOI0zwAmxVcIHk1nuNTukuP 9HspbH9KCePEDSLfQdcHj499WgqoFuTegA44ueZF6yt8y5JlAnHcev+m+Gmno9EljFUwCrupLD1U/ SntgDkIEHa0aPe+2aNKlCtb74/4iuDMbZJ7xVsjUB3h0qwzL/G8tynTosabc7eYFUEaswdCaXLmKc 9xoCtCdfn+PeIx8qjBUEKZj1r6ZYBkJ/i7fO5hy0Gkz63jZRB2hDpNdHo9ynar5L9NIyfuWOdd8xX yVbnjf9g==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXcMK-008udL-JI; Tue, 05 Oct 2021 04:47:20 +0000 Subject: Re: [PATCH v8 04/11] x86/tdx: Add Intel ARCH support to cc_platform_has() To: Kuppuswamy Sathyanarayanan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Paolo Bonzini , David Hildenbrand , Andrea Arcangeli , Josh Poimboeuf , Juergen Gross , Deep Shah , VMware Inc , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel Cc: Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org References: <20211005025205.1784480-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211005025205.1784480-5-sathyanarayanan.kuppuswamy@linux.intel.com> From: Randy Dunlap Message-ID: <50eaabfc-50b2-7617-ed9f-61f61b619cd8@infradead.org> Date: Mon, 4 Oct 2021 21:47:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211005025205.1784480-5-sathyanarayanan.kuppuswamy@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/4/21 7:51 PM, Kuppuswamy Sathyanarayanan wrote: > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index c42dd8a2d1f4..abb249dc829d 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -871,6 +871,7 @@ config INTEL_TDX_GUEST > depends on SECURITY > select X86_X2APIC > select SECURITY_LOCKDOWN_LSM > + select ARCH_HAS_CC_PLATFORM Where is ARCH_HAS_CC_PLATFORM defined, please? I can't seem to find it. > help > Provide support for running in a trusted domain on Intel processors > equipped with Trusted Domain eXtensions. TDX is a Intel technology thanks. -- ~Randy