Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4600981rwb; Mon, 21 Nov 2022 09:29:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7oWOOeV/dWwPoAOn7S0U9D0uhgsBt4eRgOzszV3eeCjwQW+j8pcxDmqMhJ/M8JvraGpEjK X-Received: by 2002:a05:6a00:1d81:b0:571:ea17:e111 with SMTP id z1-20020a056a001d8100b00571ea17e111mr513694pfw.25.1669051745166; Mon, 21 Nov 2022 09:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669051745; cv=none; d=google.com; s=arc-20160816; b=mh1sDXTBDRkOigBYR9XOAJPVs9aQIgrnRIzPJHC63RNgVpMbnQ46SkmQb7AwZ9XhZS i6+AMTXJswXwrl4cbqM0FNy225xYRHAzpi6f+AFEnHdiAg1UHo6Q4dtjGbpp0kV2Gs9a gG1AS60EkeDM8r8cX/c4XGZ6yBnjJzcftBMYWLnzF+avhfEFLwdvsOW5wQEOMMcGdBEp jehZyRP9I3JVya5gfK4v0DoVY/J80m8rVYUh5HnrJ98pEwUVP65dAWWPIS8TBxqt89pq qRs2EiHtw/cm7ALnvSmWE+OH3D/IOpx6uQMaNwA7D/+i2UBBssjQba9ta4bLPpKryS3t PGlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WgU9/AKvKXJ6SuwMyjktR0ngAfLry4HgOSOIS4hdktc=; b=MNz1gNZz2rPIRVUOScQjlx5vWjm8eUABCEYIcmLzFkwwlg7t1frckSoNues0kGHKst Uu+k+K/OoyY4owMAaju29FOFqubGZ2RVgG3kuCAEbfJ4LvSJC38x5YqI8q04Yah83pT5 PrQ45IoNOzVrzYw+H1HoOw2jQwxlJzScbC99qtbFrVfXSkCQGf4PfsEOPIRE5i8VZZGS u/fH++YbsO+WP/DM7pCNuPQifM+GWF+y7YTOxaDSMyOseHpFWiSn2NgebyMH9pt8C1QH xHPBvDT24c/0QzaJYQrSgliVd2y4NVvDDAw3L/dL6fFqRQaix4KWAVEVDa44KIGoyvw4 cK9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZFeQqpR0; 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 o1-20020a17090a5b0100b0020fadac08a2si10157462pji.108.2022.11.21.09.28.53; Mon, 21 Nov 2022 09:29:05 -0800 (PST) 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=ZFeQqpR0; 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 S230052AbiKURYP (ORCPT + 92 others); Mon, 21 Nov 2022 12:24:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiKURYG (ORCPT ); Mon, 21 Nov 2022 12:24:06 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 836ACD103; Mon, 21 Nov 2022 09:24:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669051445; x=1700587445; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Ui2/1nweO0WhZb/0PgpLblEbGS0RJrQ9SrFTuasbInA=; b=ZFeQqpR05jYZaftn6Iw3dLQdy85GGnmZhwDgUDc4m+WmXe2LpgY1NPOV RHWTsjfbECPDpqN/jF3pm1zadvDW8Ccau329DOHSsNJuxGz5i2Fj80xQ8 z+gs9/7PRYS2MIB+Q/wJZ8+4lvCXTEJBdwI4Ub9wOqkelLWCP7EITUdPG ESBuBLGUidVF2/HuqiVA26LNZVRHVoFLiF9c0DUzifaqDj0n7VD8XYXGY Di5qmj0fFBqSALT0PNgZmoamtDfkHLZVEd+1agCBtnzpBDbbTNEENBYZC HCEO6SEPyDyvaD8aRNAKUlxqDdGG2DkSGLtAXdU9L7qLEm0l11MZopj2C Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="313643556" X-IronPort-AV: E=Sophos;i="5.96,182,1665471600"; d="scan'208";a="313643556" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 09:24:03 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="704637056" X-IronPort-AV: E=Sophos;i="5.96,182,1665471600"; d="scan'208";a="704637056" Received: from dylanhol-mobl.amr.corp.intel.com (HELO [10.212.242.103]) ([10.212.242.103]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 09:24:00 -0800 Message-ID: <750471f7-4cd4-5ebb-2790-ab0e153f4337@linux.intel.com> Date: Mon, 21 Nov 2022 09:23:58 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.4.2 Subject: Re: [PATCH v7 01/20] x86/tdx: Define TDX supported page sizes as macros To: "Huang, Kai" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: "Hansen, Dave" , "Luck, Tony" , "bagasdotme@gmail.com" , "ak@linux.intel.com" , "Wysocki, Rafael J" , "kirill.shutemov@linux.intel.com" , "Christopherson,, Sean" , "Chatre, Reinette" , "pbonzini@redhat.com" , "linux-mm@kvack.org" , "Yamahata, Isaku" , "peterz@infradead.org" , "Shahar, Sagi" , "imammedo@redhat.com" , "Gao, Chao" , "Brown, Len" , "Huang, Ying" , "Williams, Dan J" References: <2eedfcff-e8c1-79af-63f4-c852af7b7e77@linux.intel.com> <088c54c9eacefde34c905c813facfceeb4d13b0d.camel@intel.com> Content-Language: en-US From: Sathyanarayanan Kuppuswamy In-Reply-To: <088c54c9eacefde34c905c813facfceeb4d13b0d.camel@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 11/21/22 1:15 AM, Huang, Kai wrote: > On Sun, 2022-11-20 at 18:52 -0800, Sathyanarayanan Kuppuswamy wrote: >> >> On 11/20/22 4:26 PM, Kai Huang wrote: >>> +/* >>> + * TDX supported page sizes (4K/2M/1G). >>> + * >>> + * Those values are part of the TDX module ABI. Do not change them. >> >> It would be better if you include specification version and section >> title. >> > > Such as below? > > "Those values are part of the TDX module ABI (section "Physical Page Size", TDX > module 1.0 spec). Do not change them." Yes. > > Btw, Dave mentioned we should not put the "section numbers" to the comment: > > https://lore.kernel.org/lkml/2a1886e7-fa5d-99e2-b1da-55ed7c0d024b@intel.com/ > > I was trying to follow. Yes. That's why suggested to put section title. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer