Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14532869rwb; Mon, 28 Nov 2022 02:06:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4QzxWKQXME9S1DCChSiK+oaK/ZD0AyRlI7LpS/OJaLRpdqcyDasr7/JIA0L/gg6ln7ba21 X-Received: by 2002:a17:906:5dcd:b0:7bf:707a:7247 with SMTP id p13-20020a1709065dcd00b007bf707a7247mr4139393ejv.196.1669630013905; Mon, 28 Nov 2022 02:06:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669630013; cv=pass; d=google.com; s=arc-20160816; b=0fZ0Kbe4/aelHnSl8fXh3FYAjG7e8GoMbh0z2uKva1Sxdh0Up79izcFGU0HcEZ++bZ a5+4j9JCkUTVFlHrMsIyzfj5e0507PBxcryegxu+eDtg2r+WaExKDOYpelEA5FDieoHh iHdRRWS9SbTv/Smpt5lvkpu2sVU0mFBnBVhvROCcEUI5hK/nVcH7q8sGXucRJcH2nuE+ W5D2T9trdfGMw07AfluDvWKfwo+ZXvIGiT5O9JIgRBJhic4hQUs1XbPRiDdDMvhzJZvX akBDgQyP+/RRs3s6xTUzCWP4iZRFm0dDNgEOUi+0J/wg+7ktir+YZNCGtS0inp02XQIZ NCxw== 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=terZEYg84psFFK041r6Fmf7MDz6RvqmDADHm33BoYA0=; b=DwZcD3JTfLq+ufg2rL5NJ2og+hm2Sc5R8MFdBI8KwiQ0BEt5mhNILgR1tRXz/S8VIu 2bj9/mJA+3KzHYe/RZEGrh/1JJBhmejosRIhiDKTOhQYwzRPvdUrRTIGC99cPkhfNc1t Pdt/yKlYlQnNDChzecXZ5hWxuRcBwqpjiL4dfsFFMKMqtKcnCG5pBJAFGWIIHuC3a4Aq qCVQVwTegDDYh7ipzV25ETDySQlrB3KCLFL5vc8ymnRXWmwR+biM8yhT4XTrfGvP/PtY MPRL4t0PgrsWVfBu6DH7FvUnWMJk4O6IV8ygyRJNo6N3BbbOmI4EM6vKbYQRFA7k4973 aRNw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Uz78e9N+; 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 dz16-20020a0564021d5000b0046a341e2c1fsi9723108edb.500.2022.11.28.02.06.34; Mon, 28 Nov 2022 02:06:53 -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=Uz78e9N+; 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 S229963AbiK1JuR (ORCPT + 84 others); Mon, 28 Nov 2022 04:50:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbiK1JuN (ORCPT ); Mon, 28 Nov 2022 04:50:13 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 002EB192AA; Mon, 28 Nov 2022 01:50:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669629013; x=1701165013; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=terZEYg84psFFK041r6Fmf7MDz6RvqmDADHm33BoYA0=; b=Uz78e9N+EhFDJgFuB0/t5QhByAhE5MwUPw6UXclkGytlWacpuzJR2vlL m9EIV6lUkS+FnG5syKLbyc7qzDjIQjA/3MGoHmkf1nu0yBeeuMk8Xy+AD 8Ir9Vp9TYXQMc3AcW7jmE7PyvTWrpDD5m2VeDj1sC4ao36HLguORnWtZ5 419S0xonxTMUGfwUFlBXSjPEtkwRN/G3tXimptrK2MgFhBEKRddPUvAEG REvShH2I3TDccuPQpPZaRtysJRDdqz8TbjwpLhdwvLwvwlUh8Rf9NmAGo Ne6FQ9IoZhZnHanbcbUzmlfESdHtpwLA+W2GF0zpoyYmgXJSgWVa026WC Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="295177630" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="295177630" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 01:50:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="785565510" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="785565510" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga001.fm.intel.com with ESMTP; 28 Nov 2022 01:50:12 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) 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:50:11 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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:50:11 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (134.134.137.103) 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:50:10 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HqKawr6z/qa7NnM2mBf2FO2qeC9I/oUnGccU3KM29FKFmaPTydx1XqdYVZQNihmyJrs+t77cP3fhPYkyOR+s4lc1CZVpHlwq0II88MgpDT6+Hq9g/Q67ztyo3s0n9squeJHk8VQ9v2cicAi3BQ9Cy0KY1CL59M2ZaI4m+qzNJSdjf8+0blXU5Y3IYorLg2jila3ucXU7Y2QcCMQ84D/jrr4gR88VAwD0YYvlIO9gmgD2tQYuFkp9Ott27ZuLd1/2CGcdPDHFag5De6RDtPB5YevWFHMzvYkv9lnXnaZHL+ctZTF2LK14HS3kAAqsni+gvCUwyiA/YEVkTCcWUKx4GA== 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=terZEYg84psFFK041r6Fmf7MDz6RvqmDADHm33BoYA0=; b=IlG4Hon5WXWDvbDRLr12jpjc05UONFPj0z5Ep9YFDMQ0NsVko0XxGodUBlAxqmL6UCvF0ItUuQRV3jCW7DgHoQKIR/EszxGmT+996jgtfCAFH1pHc6lTYxoNWwAz4TzKaOFSFP+RjZkUXL4FzdO90T9uNX29l4vf6PXxfQmBkJ4pQFeGfIEYsAwLQ9fb2QA+18V+Hine7gAQ8vxr5tf6GFJnVFWn/GiMFtJ8wTi9CSjRffoYMrdax/wi/9HIl0V38sm9TzJdCWZX07ywm8Drb14Pmn9Zq01w7l+KnMZ4xpi2umHF8Q49mdVuIJ16a3qJ87Sg+CH5hn1bBEwWBJXrXQ== 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 DM4PR11MB5971.namprd11.prod.outlook.com (2603:10b6:8:5e::7) 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:50:06 +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:50:06 +0000 From: "Huang, Kai" To: "Williams, Dan J" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "david@redhat.com" 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" , "Shahar, Sagi" , "imammedo@redhat.com" , "Gao, Chao" , "Brown, Len" , "peterz@infradead.org" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" Subject: Re: [PATCH v7 10/20] x86/virt/tdx: Use all system memory when initializing TDX module as TDX memory Thread-Topic: [PATCH v7 10/20] x86/virt/tdx: Use all system memory when initializing TDX module as TDX memory Thread-Index: AQHY/T3KCI/2IUKL7kSgXbHXnV3Az65NU9CAgAB5pwCAAZiKgIAEqQwAgAABUwCAAAqdgIAAAY6AgAAGegA= Date: Mon, 28 Nov 2022 09:50:06 +0000 Message-ID: References: <9b545148275b14a8c7edef1157f8ec44dc8116ee.1668988357.git.kai.huang@intel.com> <637ecded7b0f9_160eb329418@dwillia2-xfh.jf.intel.com.notmuch> <8e8f72ad5d7a3d09be32bee54e4ebb9c280610a2.camel@intel.com> <361875cb-e4b3-a46f-b275-6d87a98ce966@redhat.com> <397ebe70bf9cede731f2f8bbd05e0df518fd3a22.camel@intel.com> <49ab9f26-9e23-25ab-71b4-e666c70ff77e@redhat.com> <8300f1098aa8fbfae711313be41ee44cb1203d62.camel@intel.com> In-Reply-To: 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_|DM4PR11MB5971:EE_ x-ms-office365-filtering-correlation-id: ed540fe2-7cb1-41b7-1936-08dad125ee41 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: G896+503jhuuHKLvc0LeB08xo1G5WFgjotrqKsTrw8+9lbXNBhHHs5baujg2FZ0YZq4KxmuJUXkG7BCACdfi23929Qiyyjg20b1H6cGPuGm2/nERZb1EjqG3vZsaJARN2/8e4hpbkb54k6jXedM6dBaTEzkR2bFCUb0SvyQFu7Z/BrpC8zoVYi7X+PiJexHOVgRAl4OtrLVPH/fWRe4pks0UzQOM8vHF0QS1IxxvgbApf7JfywRSZ+rEriaWUlkeq9/9vPEoPmRwiLkmhc+kZkIRniUNbkM4HRbp6AvE0vsAHcUjWFsYe/JByyHBtyH6znMQ9NPXPO+MSMwsdSFOnaVdL77Pl1erqL5M6jjcJCuBCy1/f646OucXEJKE8/walT99XS7RZVi1T9a2AsjqUorgc8i9MhNh0IBDKqc2RKT4lAKG928176WEWAJoBBTZEIot23ci883UtXt94qaD57v2FWMOHPcu9UtaEP1JNwFQG72vKZxo/uLjbJ8oSzBT+eoKl37/LjNX+OcCa4VJS+8rPSJjInCIbUWg11hhjq8js+Uy3XgL22JbAo3pn1OyUrJwEToIUNo42bado87Uxmuzv84sd0Kgiacu7RxOi4aQB6mPFOiUoQAd422SsPArSI6FYjl5I27EHsnjyeURMP9aO63FDKwh9kRYCjtrBNPQISDjBXJfzmGPcbXlgzEeBRV0oCXB//EmbojiPec+Qw== 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)(346002)(376002)(366004)(39860400002)(396003)(136003)(451199015)(71200400001)(26005)(6512007)(54906003)(36756003)(53546011)(316002)(6506007)(110136005)(122000001)(38100700002)(82960400001)(4001150100001)(2906002)(83380400001)(4326008)(8676002)(66556008)(66446008)(66946007)(66476007)(76116006)(64756008)(86362001)(91956017)(5660300002)(8936002)(2616005)(7416002)(41300700001)(186003)(38070700005)(6486002)(478600001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NU9ONXFTZCs3SGZ0RXA4N2lneTNBU3ptZXo0TlBBSW5OZGxZakcwT0p4ZHZ5?= =?utf-8?B?cWcwb2d1MEF2YXhTMldWUVdZT29ZUWRucytkY0pjcFRaWW9ITUhPNlMvSm84?= =?utf-8?B?RWJUUVVIUll6VGM3QUpmaVNMT1ZSald2cmlZN3h6UUNpTU12cXdBeHI5VVk1?= =?utf-8?B?bjFac0pPc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2F4di9ydUU1Y2da?= =?utf-8?B?YVpwNmpUVENYdHF0cDBSazlGdGVqMGM2S2IwNmZaNXdhUUJzbFRTSFpXdDBU?= =?utf-8?B?REUxUkZjMWwwNnA3RzdBNFduK1Q0c0tHb0FlS0NNaXgwTGQ4akJ5U3ptbE93?= =?utf-8?B?RnlCVjlON2ZybDdOZFQ0L3FSOVRvcHdlQXNzdW41WVRnVUJBdXJLS2ZrVzhI?= =?utf-8?B?d2c9PQ==?= 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: ed540fe2-7cb1-41b7-1936-08dad125ee41 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2022 09:50:06.7116 (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: JGF9cdjetkLZs0/y1qEw/H3B9lC6p3PrhwVCnjn/5md3VjIIjVC4gNT0rWWwr4sP0gncan7PaeMr8neg8AcvCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5971 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 T24gTW9uLCAyMDIyLTExLTI4IGF0IDEwOjI2ICswMTAwLCBEYXZ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