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=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 601FEC433F5 for ; Thu, 23 Sep 2021 14:10:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F1BD61090 for ; Thu, 23 Sep 2021 14:10:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241706AbhIWOMW (ORCPT ); Thu, 23 Sep 2021 10:12:22 -0400 Received: from mga01.intel.com ([192.55.52.88]:12414 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241711AbhIWOMQ (ORCPT ); Thu, 23 Sep 2021 10:12:16 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="246307410" X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="246307410" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 07:10:43 -0700 X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="551014865" Received: from tbirrer-mobl.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.212.101.82]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 07:10:42 -0700 Subject: Re: [PATCH v7 05/12] x86/tdx: Add TDX guest support to intel_cc_platform_has() To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, Paolo Bonzini , Juergen Gross , Deep Shah , VMware Inc , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org References: <20210916183550.15349-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210916183550.15349-6-sathyanarayanan.kuppuswamy@linux.intel.com> From: "Kuppuswamy, Sathyanarayanan" Message-ID: Date: Thu, 23 Sep 2021 07:10:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: 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 9/23/21 3:36 AM, Borislav Petkov wrote: > On Thu, Sep 16, 2021 at 11:35:43AM -0700, Kuppuswamy Sathyanarayanan wrote: >> diff --git a/include/linux/cc_platform.h b/include/linux/cc_platform.h >> index 253f3ea66cd8..e38430e6e396 100644 >> --- a/include/linux/cc_platform.h >> +++ b/include/linux/cc_platform.h >> @@ -61,6 +61,15 @@ enum cc_attr { >> * Examples include SEV-ES. >> */ >> CC_ATTR_GUEST_STATE_ENCRYPT, >> + >> + /** >> + * @CC_ATTR_GUEST_TDX: Trusted Domain Extension Support >> + * >> + * The platform/OS is running as a TDX guest/virtual machine. >> + * >> + * Examples include SEV-ES. > ^^^^^^^ > > Copy/paste huh? :) Yes. Sorry, I will fix it. > -- Sathyanarayanan Kuppuswamy Linux Kernel Developer