Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8765115rwb; Thu, 24 Nov 2022 04:07:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7KgMgDuWDudetx++t5rqXCnayJvR5I8nfM752anYAAg92IMVHldJx5IGrhxPrDOCyiZEFI X-Received: by 2002:a05:6402:cb0:b0:46a:5df2:8d56 with SMTP id cn16-20020a0564020cb000b0046a5df28d56mr4745943edb.238.1669291631992; Thu, 24 Nov 2022 04:07:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669291631; cv=pass; d=google.com; s=arc-20160816; b=Yh9hF8VSqcO2DEJVJqakDNthbufD/A9cWnvzV9ousiEwbFsiEUGI6AxuehkLB1fi8P hk7NLpN8wzjVs4HA4Y0wBywt0inYU2QA/vhPPgeTmSqIiFqV/3x9AFSe1xTXY3fi9cqa m8tSEuyd+KHNzvSOV4nA0UTPtADueXUzbyQjeOI58Mgy1LAqmUxmktiNT26sDRYVINli y6NrxMFFhBMRVbvybhqmHNE+UXTeEnXw2eLAiWJa8HaGwnNYbu7d/HUUAll2pOUrLjuT Mr30Yy2Zs7GmMGjARotPj9J5DFvlLAQ/o3TCENEc665WOjRNYvmXPn1FNgYocVHthoBU VQ6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=1eZnyjtGoClCZk85aH96e+lHV5X5jDOL+xLwl5OEBP8=; b=RB1ZXS4XDNnwzP9fJKz8Ab9bWcAgjAoTfMh20sSFQ3eu76CzLN/CWoYxRSnCYwgUUM oCiQVmUgqDLq+3nzPpUsDPHTwC2nbj2hoZ6Gv6H1G+Y/o0KpmaAckmgoI4XLyk5FOGW+ +w8exXA7kCHFnanTfgE3ITqh3r0b+nhr7nhJbj89CZ+ckSjiD7pWijBEo3e37780W5tf jM/dd5ZLMsFFaR9s5lFiEeiZpS9rgJvcpHkiIrx+UN/3O4R/dGhE/yhOcpLt5YfvV10g HL/m55CdmDNNRstZ8WSzNQA/+ZuWsYd0dXLN5shfkXj8dGnNlH/LBTHlt+6SakRfY8rV sm6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g+U57Mdu; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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 ht20-20020a170907609400b0079800b8172bsi96017ejc.450.2022.11.24.04.06.49; Thu, 24 Nov 2022 04:07:11 -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=g+U57Mdu; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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 S230156AbiKXLqt (ORCPT + 86 others); Thu, 24 Nov 2022 06:46:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbiKXLqq (ORCPT ); Thu, 24 Nov 2022 06:46:46 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E4319DB96; Thu, 24 Nov 2022 03:46:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669290405; x=1700826405; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=1eZnyjtGoClCZk85aH96e+lHV5X5jDOL+xLwl5OEBP8=; b=g+U57MduaA6aGXGIq3QweoutdG7OlIr7+t5FQqCXhuVfi+IuHJdJbXda NHG/GPdCcBaqNhqcD2fErX8/ACTagrwHLaaRLuU/oWAmgq47JM2+f1tQF jSNp0hAgxdWSrE4r824F4prHlKJKP/qsdTstdM8MrGQWdsSL7P85ALRw4 r22ybX4NRzjFEQFFBsjThMe/TrMI4cpTRagtgyRtGePC3tD37lsZv788i NozSUFkVmicKWEnRRXxirGnDtON0KM+AOWWHyg41p447ljsCqHf0YEP12 La1J5t/c2Fa1Z1uO/Wvhc4CppGn+HlegX1aW+TrmekfCWXxDI0/bKQ5wT Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="316106492" X-IronPort-AV: E=Sophos;i="5.96,190,1665471600"; d="scan'208";a="316106492" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2022 03:46:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="673218271" X-IronPort-AV: E=Sophos;i="5.96,190,1665471600"; d="scan'208";a="673218271" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga008.jf.intel.com with ESMTP; 24 Nov 2022 03:46:44 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 24 Nov 2022 03:46:44 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 24 Nov 2022 03:46:43 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 24 Nov 2022 03:46:43 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.46) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 24 Nov 2022 03:46:43 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gWfqGwsQUi1l4vZtcFTXgJWky26w5y02khW1PHCFW5GSTArtqyr46EXM2MrHNUaHofUJxzWcUyXgmW/LwJ/XC8XwgoWnEGIm9eXwinDDi4CcW51Y/DjD7SK/85C5f2+hCIDdDvgXSuxDL61R7CPuHI1ISCq2oJrd4W0b8dzxrIHxX4Sp4iu8LfURbmy1A33ORL4u8D3f0TXz2kLFIcaGXA3K2SolEc7TylAD46EAyQ+7ZJtmyfq3gzqMfUVpEyDF75jo1OqmTF83czB9T6fZzv6EIGii/WYP77hDEzzXpNh+LshatWuwOFICZ3J3w1eWv6m5z2ajA6VUk6DAABvLKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1eZnyjtGoClCZk85aH96e+lHV5X5jDOL+xLwl5OEBP8=; b=O2SuXx6LALrL6Rkt+/GM5JyAK2FJ5oyPGIWInWcs1svedZlgq+YKxP8Ih6OY7xlT6iN+A/nTtFX4bahqtF34SUnPa2GoWBml92Kzt/2nUDr9vguHyEGXAqV8VYC0RPC8Mx7o0mqYS41O3X27p8Cmmh+u+tRxDnLFTnrNwLUTjIISIqnEEQwYJ2ew9dnMbMbyuG8ez/0TFurUAdYy4dJNbgNKiu11DDWsAOZ9VmLvWJvawN2w79jrqcihalyExm2+tlmVViezXTH/oXh3AQMqd+xOrqIFbB8xX/gXPQ3XsPR5/Gy38yY1po8SBaeJluDW/wDZG893ru+hVEJR0HOptQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BL1PR11MB5978.namprd11.prod.outlook.com (2603:10b6:208:385::18) by DS7PR11MB6038.namprd11.prod.outlook.com (2603:10b6:8:75::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Thu, 24 Nov 2022 11:46:40 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::2fb7:be18:a20d:9b6e]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::2fb7:be18:a20d:9b6e%8]) with mapi id 15.20.5834.015; Thu, 24 Nov 2022 11:46:40 +0000 From: "Huang, Kai" To: "kvm@vger.kernel.org" , "Hansen, Dave" , "linux-kernel@vger.kernel.org" CC: "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" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" , "Williams, Dan J" Subject: Re: [PATCH v7 13/20] x86/virt/tdx: Allocate and set up PAMTs for TDMRs Thread-Topic: [PATCH v7 13/20] x86/virt/tdx: Allocate and set up PAMTs for TDMRs Thread-Index: AQHY/T3JgMaJHzs+pUuA6EdKq644U65NI28AgADW5wA= Date: Thu, 24 Nov 2022 11:46:40 +0000 Message-ID: References: <74723e2b-3094-d04b-aed7-2789268b00ab@intel.com> In-Reply-To: <74723e2b-3094-d04b-aed7-2789268b00ab@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.44.4 (3.44.4-2.fc36) authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR11MB5978:EE_|DS7PR11MB6038:EE_ x-ms-office365-filtering-correlation-id: 267bb909-8a52-4312-990d-08dace118d2f x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PmbvILTMuifz1l0mmMS2/jWqxdle7Np0htzl4VmY1HoRkuuCQhClYkuGvoVNORHjVvr0fCtq+j6RXqgeEV0kpKwQ+JphndDpxPZjUpWaNfed38gpA47BLNQlTOM/10tuTWZ9CqnzYwvj3XtvImGlPrQHC7e2pmZlvl1EeW02uL1TFu1rltEKHyI3bR8mKgSfNZGXpLOII2cnunuYLi1wn4YgLLzgvg9suv7kXfKgBle93wBEDfiFzpvMKot1i8YcdES/n5vksKWlnqsNJ9R7ah3C8WFJDCnbwtWy/c0JNXhGfcWu/Z4b0VDqw5f9XDYqbiLRJ+gXOHwEb/stScUKrdYrUdaU3ZX7ezrrUl+GOiS8PPZtOCCBzAYgaAlcDTbt3dsjU8h6CFf2x6jiE1CmhQVjDwqx8Fpr0EzExKEUnyGsrfdU39HGKj3XOXuHA+UL98XoNkypZF6MvMWh7HVu0C8nUTpiJroeGbC0VZ4BOCO/GWO3s10nqQJUflu4smgSkxNOYlcFDjfoT+sLl31W6SkHHVrq1z1314dRV3dsZts+p5QPUSYO3JG1/P8MGey/ArPmeCouSI/tCLF7XCsAIKcBcwZZroF2fU4R8ZCAoAlXSTkQaqfJoLhMmMO//addnDRFj0YkS7D+UtCSN8FAy+cRZJaqaiC9cN+wMhm9r6qoDP0PCKE/T1e1L87iOHEVT4AfmF8weeLrvBHC8KA6kb6ts8RrtrIE6QQZzvXA7vM= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR11MB5978.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(366004)(39860400002)(376002)(136003)(346002)(451199015)(66476007)(76116006)(66946007)(2616005)(91956017)(86362001)(66556008)(64756008)(41300700001)(186003)(38100700002)(7416002)(4326008)(8936002)(478600001)(26005)(6512007)(71200400001)(8676002)(6486002)(82960400001)(54906003)(110136005)(38070700005)(122000001)(5660300002)(36756003)(316002)(6506007)(53546011)(2906002)(4001150100001)(66446008)(83380400001)(17423001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?VGFSTXQ2dmJkK09vOFFJa0pLNHpoNXVXU1o5Uy9ycFVwRGxrZ0dpdjJRcyt2?= =?utf-8?B?d21PZ0dUQ1c4QU1oZzRFRjMxSllGVWVuZnR5RXo5dXg2RWlMOEZVRm1GYThs?= =?utf-8?B?UVF0bzVJUm95QWNaaHJoaFRJZFhZWE9uUkdjRkppTVBRejJ4clpsNzM0ZkNT?= =?utf-8?B?ek81UGNzeStYVzNFY1hWSTkzcDlCTExEQkdrOU91T3ZiTDB1UDZJNjc3RTg1?= =?utf-8?B?NnR3WWhaVUtOVEh4bFl1ZHNzb1Jn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NWMnJyeExoVS84OXNpaTdmMmdLelRLRzYxVUFJZDhzWldTVDBlTURp?= =?utf-8?B?T2hzQ0xNZHliQVFNYkhmUHlKSTVwcWdlTEFiRmRHWTh5bDhwWVdtdlVWeFdP?= =?utf-8?B?dFE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR11MB5978.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 267bb909-8a52-4312-990d-08dace118d2f X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2022 11:46:40.4350 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8fX3t/eKc2UoCoD97d3+4U+aQ82+mzOQ8fdyhHcp0lkmg8Fn9Rfh5963U0rS0edrtcPSC6TmzBnhS3EN6vQ3Ew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6038 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 T24gV2VkLCAyMDIyLTExLTIzIGF0IDE0OjU3IC0wODAwLCBEYXZlIEhhbnNlbiB3cm90ZToNCj4g T24gMTEvMjAvMjIgMTY6MjYsIEthaSBIdWFuZyB3cm90ZToNCj4gPiBUaGUgVERYIG1vZHVsZSB1 c2VzI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