Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14490709rwb; Mon, 28 Nov 2022 01:25:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf7biujn3YexwMPvJiOnJEqUwAmbO46Li6hl1qFlu5mjnqBlIA/5EQBAC2zap6aXLIPIob55 X-Received: by 2002:a05:6402:2987:b0:45c:a9d3:d535 with SMTP id eq7-20020a056402298700b0045ca9d3d535mr937321edb.0.1669627555083; Mon, 28 Nov 2022 01:25:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669627555; cv=pass; d=google.com; s=arc-20160816; b=JQzQPNLSb6BkcJdGQNYRHAmwIpd9+4BrHm4iBHut/DvrKC5hi4PcAZSgYfb3yLDf9q p5VPrmF6dElcVgUSrh5XhqIe1W9UW4p5JIJ0mzlyF0fOvKo6+TMu1WGqRaWxKm6mLCcW NOS8Y9GhLxaJE6cwsF8TmbvMMhkHPWmJo4MMkKfxQcYxmU3MFfGUTvu909ekx8i7gK3y vTiYo1+Q6xrTBlh1zYmC8yk3E+as8yBbfKTomgJTEE3YKLalxMwVxJtSbdm+qnncJnbf QCM+AW/TsWfZk7wrQpMOIVngGefN9ZtQU2+9P5WqbmUkPUM/0bFkk1W8pjVPh1Y9jSU8 HSjA== 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=deF3sKGk3BKKc52B4tNFdM35NULY5yHnngahGoFwJuw=; b=P92N/38ETKmVhDO7OYdYrf0Thlzg02ldWaXKaHUMQ+SlAFZTMC83m0y2bqwJhBKZiE HPqTXGIW5CXwR1ZqhzauDVVJdKAcMUw3BiVINDGlL3dIF0s+0TxP8XH70JfbWjDskcpX /BQYd2Icm2eIL4TapDJCrkgk99z/Q/p/Fkvy3o7Sc8HA8XetTdQhlCH+JcAVzlztTh3q ToXYMkevXwDa40cyVhBZxMRl3MZx6i7q9YIuW9l7MHzuU1qahiRXQ+mwywEeRo6utdze Ihzeg5kQYRJ82MX9hD71jqLdhELFkozMOa/M6qtLZ8hNQxfcBJHCHOj3PJ3RKrQ1wFrA q0jw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mcEiYyWD; 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 co16-20020a0564020c1000b0046b1827eda2si2754123edb.74.2022.11.28.01.25.34; Mon, 28 Nov 2022 01:25:55 -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=mcEiYyWD; 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 S230225AbiK1JO7 (ORCPT + 85 others); Mon, 28 Nov 2022 04:14:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230219AbiK1JOp (ORCPT ); Mon, 28 Nov 2022 04:14:45 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A03F7186F2; Mon, 28 Nov 2022 01:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669626884; x=1701162884; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=deF3sKGk3BKKc52B4tNFdM35NULY5yHnngahGoFwJuw=; b=mcEiYyWDXXenOc7+B88LWB8x24Rydq9zUDJd7GoIripHySx20epE2ldm zGKDenBX6xSngYysP3ffqoa/jSfB84olvgZ1ObyTmOsHLSfV4YcJ/Rds1 kxXZ1lYgkTKoklmmh3FeM7pwteSPEB+uRIM6cl3pO+l3u8+PdxnGbzZok dlPBF6fAivAf+N45Ri9Sd41JL7khq99WvjlgjfnYperi3S9sUKiJ6oDb0 yOERLUWqUC2PhQ4atupSmY04Sq69kAycr6HRI7Fu5v76QNRlodhrrh5M0 RksXUbgySyzeKyh4rtlqJb26iSkUbbSCfxem1Lfy8Z55pPlbEaa6mDLMh g==; X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="295171656" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="295171656" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 01:14:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="711891271" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="711891271" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga004.fm.intel.com with ESMTP; 28 Nov 2022 01:14:34 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 28 Nov 2022 01:14:27 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 28 Nov 2022 01:14:27 -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.2507.16 via Frontend Transport; Mon, 28 Nov 2022 01:14:27 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.44) 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.2507.16; Mon, 28 Nov 2022 01:14:27 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VAMEMY8tX8YbNxBp1tcelRg46vVZYoJkMPjE2OjOlwD30twIVuIWS5jJQ0qwlPjwNptJw1GYHzJzv8y6+KYCjOqt//N/EPKs9Ey3FFSGhSkjMqwotnU4uC7+j3vw7jqZpt2KcuYzP45NsQHwEZbQ53+OS8oI30A/S+uSwm3tXLrm2720B1htxTc6aS3R6xzFYKpewOm6vlaafKZ2j7eCaxxni54J3Qp4LD6IXbJ0SPgzMu/9GaSLcy9VbbXkyD2AU69YM0oDPC3fyPqYl0AwiIGlfElKPR7d6NbyoFg+usXbJDfkweF88tuTtaBDHonTWDuRMyPJfLyiQ8q6DQ8I9A== 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=deF3sKGk3BKKc52B4tNFdM35NULY5yHnngahGoFwJuw=; b=igPS7tqjOMO/fDDBRr0SMN5l29mVCgsGnqwGgRg4CLwjreWiqOQ2QSv0jzgsUPhiElFy/YUbulXWUuUrtOCm6SfXFZ/2jgqDpTVdJ8rCmSOa68VMNhXAIMSdyI6duKWdZdz/durF3KsI9GcuB8XEcL2sJ3kN0/RJetGCmd8YJVL6ZH15H+uyzDZlBX2SszM3NkEWFHek1nzIMWILvdq9cI0Ao7m21el9rvNmnwDeG9QaVSGR5i23u6TTEnPhJKcige/N4qFSLNdaoBWXUtFf11A0Ld0CPk4mBeWZunSCQFQ5+i1tFi3msnYDJRWN+9yyC1r7zlBls5UyCSe8vLuNGg== 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 SA1PR11MB6845.namprd11.prod.outlook.com (2603:10b6:806:29f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.23; Mon, 28 Nov 2022 09:14:24 +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.5857.020; Mon, 28 Nov 2022 09:14:24 +0000 From: "Huang, Kai" To: "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" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" , "Williams, Dan J" Subject: Re: [PATCH v7 14/20] x86/virt/tdx: Set up reserved areas for all TDMRs Thread-Topic: [PATCH v7 14/20] x86/virt/tdx: Set up reserved areas for all TDMRs Thread-Index: AQHY/T3PFb2p/zo5A0CRtiPfoDprYK5NLyGAgAbp/4A= Date: Mon, 28 Nov 2022 09:14:24 +0000 Message-ID: <0ebf26d1ee540b4e082b65c51cabe3327f6d51ac.camel@intel.com> References: <5a5644e691134dc72c5e3fb0fc22fa40d4aa0b34.1668988357.git.kai.huang@intel.com> <5526fedd-fa54-0ad2-f356-94b167e6e290@intel.com> In-Reply-To: <5526fedd-fa54-0ad2-f356-94b167e6e290@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_|SA1PR11MB6845:EE_ x-ms-office365-filtering-correlation-id: 9d21dba4-1b40-4db4-f806-08dad120f14f 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: bqWfz4GLDmadYapQZohA1WGccNJ3BoxWZ0x+f2dxFUJ/nireKGqDgp6yi8enmVm48C/LzIA4/ogi0tjR8VUTQj8ej+KApEozRWGgIP549QAl3VOjAQL3+j8FamoX8RwEnggttSFrKyEMGGix/8y1iWm3Fi5s12Pws3FU2nlxigZFvkFr+dlAdO6iYADw8BOCrsqTFK0DG6iStgdPpXwvIbKoSgfENOZNlffYCidYqG61MtvA5zTKct/KB8HF30UB7VckfbA5guU+Ym6nGlQUFCXUx15EyP7OknjnNaSK4P30VslvUZcFKkLGAp3RPOYUCDngOFqrSBvXT5un3vQtzc3WozzQWZEJGXu8ZALF4G96q5gRhfh0PgA9F3YOQ2P+LdDSkfv8j8NvXtHGKTlW2AAuEz+GIMA94jjCeqPwlxJ1FEhD5I8K+4EbZMz8u5u7op/VF76H1FZqD1KREvNkGEFH+EJVEq68Jg35OnSDwMiGCAYuJwVrHG4xfqJ8QZ8fgy8vh1E6MnU3px6O1aCQ4MYDGnYbhFK3DdcLuGOONI3tRBMA7zjAGdvZNgoShf6dB5DnAHKJOvTVK+LLblA9JL8Pt+BPXlmChx0uOkY1tlCWwcH2Giir6fZnafZrZjhnKHqItDBcS6NxMso0xuRWlWDxSYYn4Cwz8QX0x/axI90I/5H4nz7+XtDmRo4/F5e+HgAz+O5dJwYlV8V6o3f7irJB6arkC4z34oZN0IEVPa9TCvaxpIr6OvWYVSaYtSMK 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)(366004)(136003)(396003)(376002)(39860400002)(346002)(451199015)(4326008)(110136005)(71200400001)(8936002)(76116006)(66946007)(36756003)(41300700001)(91956017)(8676002)(54906003)(316002)(64756008)(66556008)(66476007)(66446008)(83380400001)(82960400001)(38100700002)(122000001)(38070700005)(478600001)(6486002)(6512007)(26005)(186003)(2616005)(6506007)(86362001)(4001150100001)(2906002)(66899015)(5660300002)(7416002)(17423001)(21314003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cE1FWWJIUGFRRkFUOGVqUlg3dkUrK0pQcnowVUNXZmhYVUZPQ3BjUndnbGlJ?= =?utf-8?B?ZEQ5YldIREFwMUx0d0ZzQ21rdTFUTjM0dUROVGprMnYrQzlTNWIvb2dQZHB2?= =?utf-8?B?b0FTMUFZcjlHZTl5RE4yQ2R4RnNoRHozc09LRzlJemg1UkMwcFc3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OHVLSE8zQmVSaEowSGhBaEdvZVN1OHVnOTJSY3VZbVBpRTAxcEZa?= =?utf-8?B?T0RLaFFpSFdYMWE4VEJXQkd5TXMyMnl6b3lZeWRZM1dRb0wxV0puVGRlMW4r?= =?utf-8?B?WHd2SmZtMStjNTZHTWhVaUpHRG8xOFAvN0xCSmljeDA5SHpHeWJ5R01memU5?= =?utf-8?B?VDljVmNmb0RpMzNhdFdUWVJvSFJneEY4ZDlNRm5CQ2NqWXdlMHVsaUcwbHll?= =?utf-8?B?SlE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <7046DD5AABDC0C4DA53694691912B832@namprd11.prod.outlook.com> 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: 9d21dba4-1b40-4db4-f806-08dad120f14f X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2022 09:14:24.3743 (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: tTWrH2iTcKjzgnO69Z+PGZyh8g8ewQDyjQIUD/nst4zmldU6vkWEvla7X2OIFIMhpyKQrdannJyNyGespEAICw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB6845 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-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