Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2363138rwb; Thu, 27 Jul 2023 06:16:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlF9BwaEeErTgvOvZ0Ksj+2KLaFeL+WuCdsMXTEQd5ImggoCEO19OyY3MI3CXO+uQlezGG0H X-Received: by 2002:a17:906:29a:b0:994:554b:7f27 with SMTP id 26-20020a170906029a00b00994554b7f27mr1946835ejf.2.1690463767301; Thu, 27 Jul 2023 06:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690463767; cv=none; d=google.com; s=arc-20160816; b=CAMkJKLOFRkcMtfRhviohVNd2CnqT0JIH8fnccYXoIEOGq2WULj4O8eEKGaNsj+soC KvXd56RVR/T8qlg12J47K3+YpR53sY7IsuAbipxw7jDiyoT9tOK9yyERAQcvwNNLi+oW r2aeJsNqplKrX6eyWQZc/LwkSmU86DBimoa3KRYudeGTzU2KfHNx+UXbRskpug7DaRFn zlh0UuBDumGW7Z6dKusIcibGGqePhWqDfbS4gN9h8//IaXWYwUKqCVC/cvmK6iDUJQig dfWOAatalYAd7BJQ82/luP9k5/LSyFbmBUY+uvBLBjLggcy1BEyQgeJHE75E4br26UEc 5sgw== 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=/jxyKWl9k3SxOJhMzW+Orml9oKr+bupK37wqyErGwJA=; fh=zN2JBeE3ky/Xz5p/ZSHHDMuLiv0fZP/68F4Zs1KJnZc=; b=IAsE/KOcbwNnRYmISmXsaQWb5ofWZkGVsjLC5JHUKV9RKDsT2ulwKujnfDiSnDbs7S Og3nkJYJAz3kwDWLwdo81LxTTdmLG0Bw9Om/kCII8GTRsarXpyNHyrQ4HTJfJlqxoAmL Ajwstm0wAT779jFRi8hQpXO4oOVb1dVgfSJkDvMzgYVj9G2l8weya1z4F2buxlvC6faG LfCVSQ1SP7ZfsbyusuSy119jWxL2bdWDoL3qGTKszcW5dQ77jWrrVZ3VC48zIwq1uGhe xfgQF5ZgfZmub/ePcaTVN7nm6heQ+yzG3IH6nV/TDQat4EfsZkD1Y4bWRe+1C1aQ5x57 TM5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="FDhi+8M/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a170906970d00b0099b6bff4a56si1037597ejx.6.2023.07.27.06.15.42; Thu, 27 Jul 2023 06:16:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="FDhi+8M/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231761AbjG0NAS (ORCPT + 99 others); Thu, 27 Jul 2023 09:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230466AbjG0NAQ (ORCPT ); Thu, 27 Jul 2023 09:00:16 -0400 Received: from mgamail.intel.com (unknown [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD4811FFC for ; Thu, 27 Jul 2023 06:00:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690462815; x=1721998815; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xHS7xsfQ8zvAAbvSCWBxFjUjiHKlwN7kYd5pBgiPVDs=; b=FDhi+8M/SLvHZ0vvBxSPpKxW0dAFWhszBRbOeVasZDWJcuJSPJ/kfTUb 1SQqDhEJmAP1ARjVyPfDQpcuSpTLvvShdf1a0ZhPJXEyZKfgXhHPgTee4 c03FEv5HlaQ6MpymA6dn1V0Izzp+/k5SEn1PhB+E+mJuXY+ka1juUdLXe Z6khw4HoRrhhsLBZvEveXNOAXg91ePGBjc1Gy+BE1/GTHNaDgaSEdApH4 wLcJzxFNkWhk6nJj65AxW3atr9EfbY8HVq2NVtnzt5AeTKEY/N/Fqi7lz LiO3tMho3YJPrBCGKX/zQViuDHBNRIcUx2UCyhXZ7v6las4dTWaqBa4WG g==; X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="367179048" X-IronPort-AV: E=Sophos;i="6.01,234,1684825200"; d="scan'208";a="367179048" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 06:00:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="973542437" X-IronPort-AV: E=Sophos;i="6.01,234,1684825200"; d="scan'208";a="973542437" Received: from lzhiguno-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.249.37.222]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 06:00:11 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id DAB09109503; Thu, 27 Jul 2023 16:00:08 +0300 (+03) Date: Thu, 27 Jul 2023 16:00:08 +0300 From: kirill.shutemov@linux.intel.com To: Kai Huang Cc: peterz@infradead.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com, tglx@linutronix.de, bp@alien8.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, seanjc@google.com, pbonzini@redhat.com, isaku.yamahata@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, n.borisov.lkml@gmail.com Subject: Re: [PATCH v3 03/12] x86/tdx: Make macros of TDCALLs consistent with the spec Message-ID: <20230727130008.jx3olv4pwpdsrui2@box.shutemov.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 26, 2023 at 11:25:05PM +1200, Kai Huang wrote: > The TDX spec names all TDCALLs with prefix "TDG". Currently, the kernel > doesn't follow such convention for the macros of those TDCALLs but uses > prefix "TDX_" for all of them. Although it's arguable whether the TDX > spec names those TDCALLs properly, it's better for the kernel to follow > the spec when naming those macros. > > Change all macros of TDCALLs to make them consistent with the spec. As > a bonus, they get distinguished easily from the host-side SEAMCALLs, > which all have prefix "TDH". > > No functional change intended. > > Signed-off-by: Kai Huang I remember we had few back-and-forth on naming this defines. I think matching names to the spec is helpful for future readers: Reviewed-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov