Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3948974rwb; Mon, 21 Nov 2022 01:35:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6UEHRcMTzlbg9T7bkKhvpqcntWKWNht6eKDdHyjP3VA5v2j6d15V7I+oNnxEfn49lw5SY3 X-Received: by 2002:a17:902:e04b:b0:186:605b:f99b with SMTP id x11-20020a170902e04b00b00186605bf99bmr9257125plx.49.1669023328235; Mon, 21 Nov 2022 01:35:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669023328; cv=pass; d=google.com; s=arc-20160816; b=M0JAxHrg8wq19y+Fgxl84vNCsYDHtbtvIknCscTSg7IYjNQlbaJEUS3wXUoAYKCLj1 6pqEGhaEKVFSST7zRPZs/YX43+YgPim6jJ2qvillB/XRJWSjmlnleOmwuBxdMkN94ZJN QcaM3K7d3saYf6AWnHahSv4Lr5vkQ5EF49Mlo6lnLTLeUHZ/4RpT4HOFYnZGoCOWSbr5 JViA8Fk0gasuaN7xTmEHepYubCvG05m9APwMF+AL/yrPaUOEsjoBkd/bLwakBefJBGJr bJSjHVGEddbWzK6hcqMFyNbSNbsOOZu/cmT4Ib1wg5Uc2WDjZN5+bgGpg6hseMrzTm85 XZog== 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=c059hkObP+EfeiSXFJ97i48pi+xj3+OiF6SrT1RePhc=; b=nI3H+KMcqb5/lGas8QuYP/75g6DC6BZyYh+ybabczCESy0cLPtl+0EPzf3fKS7hSJn LSZC8+qOj8WIVtK2J36nZUL8uhT2yjs19QA2DYeUpNUJVg51BVBX21pI8jnp7akUOuMd WwqFX4oPnLQYzZ7VLrDAe9OijrvroRvTYC54X9rcSOI4QI8aFDYglIk0JYoY+af1PWCP XtlFpn79hIt0arUtMInSa8XTh47y0iBzolJPJJ5x8x/s5n3NZqflDkbcasOq3geMTaMR ycQq0i8LLSt9210mzekc9Yahfku1cXnhyjaItt041DhGMflPUe+SWqQZHzW9pqSriI8m UBCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HdM8Ovmn; 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 l17-20020a637011000000b0046a1ae37df5si11147835pgc.147.2022.11.21.01.35.16; Mon, 21 Nov 2022 01:35:28 -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=HdM8Ovmn; 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 S230080AbiKUJKC (ORCPT + 91 others); Mon, 21 Nov 2022 04:10:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbiKUJJk (ORCPT ); Mon, 21 Nov 2022 04:09:40 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7308F8EB69; Mon, 21 Nov 2022 01:09:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669021778; x=1700557778; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=c059hkObP+EfeiSXFJ97i48pi+xj3+OiF6SrT1RePhc=; b=HdM8OvmncB44eUZTTYc//I+oUpAReImC3uhb3zAg1hGUxll3WUrcqUyR Qq9MRWeT6+5H0uZYu4qPHyow7DZbPHcm6UTml3S46PJCXA/CSKxdIxJh9 3ugqm97M3+8mFP4UP8lxCaDAl9Z2M2MYo7KTifUvuJ+rA4ivm2lTJrLir gb1zcjao0BBu2gJ08Yfyk8f1Eno6+mWXM/Fbw0MubyhYnPAj83xDKgQP1 DMIP7lZBK82305ZMHEKUBfZBpQITd6j19UtxswUaFz1td4JqTstFio557 I1L2kBiutmhV1QbO0obFNMi/7inA9JNYA+hl+Ae7zyUqtYKBLjNprOofn w==; X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="301055276" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="301055276" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 01:09:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="618757641" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="618757641" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga006.jf.intel.com with ESMTP; 21 Nov 2022 01:09:37 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 21 Nov 2022 01:09:37 -0800 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 21 Nov 2022 01:09:36 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 21 Nov 2022 01:09:36 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.107) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 21 Nov 2022 01:09:36 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NR7c2vurkoRWFs22emMBgSqWMxKe+8B3Z4uQKJXr9Pj34i2RP+vSMF7RIk7KMBlSK7+62AN7sm8ohGAaprKjBQTjhW0JH8NM2zuUvIfxDvrmj6pr1SOQeR3SGz5cbG/amapEc8IVZJAJ4rcD/4m8Gg2cVN6vPV8mH7iiyIdnyqUfLtoM//3VdzoGDiahNe5BxN7mAQo5VZp8NQqAw0JPog56tSSOCZNdWoiGPdHhMc3XLvVsM/NVYo0cSVDYAXn6xKJxpb2AGu2L+VQ0BsD3eJXFmwPsBmScN3AzjLqRRAR7LeCgQ32V9Dn3KNCvEnXfIO+wHM0osBv6DXLwKHvhhQ== 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=c059hkObP+EfeiSXFJ97i48pi+xj3+OiF6SrT1RePhc=; b=lXzrx8G95QgXaqjkRyuHgZ4H1fdpCph0WyPsLkJnlL3ykAOu4kbyNpjeJBHtBtHGX2Np92jyvuiZOS/blVXJ6NcLJb+cxaxUqWnLupcwfOIgDS6ziJDc07GD+x7cLMsAmSxrePoRng5llmHLwa+Ncr1gy5dSL0sENEb9wMI/siSlv098crM+p2qTck2i5+jmW3x8n94JnYcwGB0iolj2FB51jr0Ch19UuJ0DHyP+rd4gTIyCXzPppggjDI/Qj4p1mg3t3vnQrq+QA4rYItMusz7vaH1ovbic/YFMZmzRMEWzmn0Dp7vFoCT56rRKg/5Rf5RpwD2gMTnUmEG4FBc9bw== 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 CY8PR11MB6841.namprd11.prod.outlook.com (2603:10b6:930:62::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Mon, 21 Nov 2022 09:09:34 +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; Mon, 21 Nov 2022 09:09:34 +0000 From: "Huang, Kai" To: "Huang, Ying" CC: "kvm@vger.kernel.org" , "Hansen, Dave" , "Luck, Tony" , "bagasdotme@gmail.com" , "ak@linux.intel.com" , "Wysocki, Rafael J" , "linux-kernel@vger.kernel.org" , "Christopherson,, Sean" , "Chatre, Reinette" , "pbonzini@redhat.com" , "linux-mm@kvack.org" , "Yamahata, Isaku" , "kirill.shutemov@linux.intel.com" , "peterz@infradead.org" , "Shahar, Sagi" , "imammedo@redhat.com" , "Gao, Chao" , "Brown, Len" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Williams, Dan J" 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/2IUKL7kSgXbHXnV3Az65I3JTQgAA63oA= Date: Mon, 21 Nov 2022 09:09:33 +0000 Message-ID: References: <9b545148275b14a8c7edef1157f8ec44dc8116ee.1668988357.git.kai.huang@intel.com> <87cz9gvpej.fsf@yhuang6-desk2.ccr.corp.intel.com> In-Reply-To: <87cz9gvpej.fsf@yhuang6-desk2.ccr.corp.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_|CY8PR11MB6841:EE_ x-ms-office365-filtering-correlation-id: 9a8cc5a7-19b3-42ef-09c0-08dacba01b59 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: G9InfP18caucCrWavdpCAgJWAvHgFyJPxXjPauB3MFXsize2KQBSahCff22ulgOB8GcqA9fzbnFGyX9KYcnt6rOb2+pb9HMCmA7gXEp8XiKwvRoQdOKpxEN2OKozA3R8WDk9Dx64FeFqkr0TNB96FRF4j8CBWbe0kQlyRV+OpdFwbRvZHNAM48W8oQPNCW5vfJvhHDYo8vnV+bBwL4ZJpAWuNSuUPoEai80bULE8v+Cr7YAxbQuKbYIa/keiGgB7x805XaiFOdVAPy6Wpr3PjIsO0KRTPXLoZAxsZiP9qwOga9D8MWfTEUwYNeJczGF4hL1xOLJHchvT+tjwDy5smnAF2cyNvBCQVymwef+123XPg6SU1XIIRDIxO7z+3KLZ+dGHIGSDkiZ/xMVbAQvq9BT9VMYzDb67JU05KoMrwzYS0osDoykz6Renv+Frl30oQ8C5duYO0LShGRQta+6NMjZCxZDnNahCen/Pn25o8ViCO1PS5Gbos1cQk6ZRq1PRNB0zFLUrprnymk5lceU21wbqvBlgAz+9ki4zRADO7mdCh1E7+sA0rWxwMxuNshlK3mBfRSxZtavAYyMMjmyPc99Ilwf8fTQDWawV2rhaCOcLHhe75f7fztLkNJguElsbaiEJynxTS28WakSPACTM7VG7H+AlT5hTlQekAsmOXrUkhbWVyiGeTmcx610Ir83xinh44BWDb4jhtZGPDDhJbQ== 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)(346002)(39860400002)(136003)(366004)(376002)(451199015)(122000001)(83380400001)(86362001)(38100700002)(38070700005)(82960400001)(2906002)(41300700001)(7416002)(8936002)(5660300002)(478600001)(6862004)(2616005)(6506007)(6512007)(26005)(66446008)(8676002)(4326008)(66556008)(66476007)(91956017)(66946007)(76116006)(6486002)(316002)(54906003)(186003)(37006003)(71200400001)(6636002)(64756008)(36756003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?RUlZRHZGYzcySVVPcUFORytVcmNXMml0OUVEQ2JFbjE3azZZNURsZ0Z1WFkz?= =?utf-8?B?YXp2SlJhNDFROGlWZlg3Z0lMd09ManJoYUhZeTFWalVjQXU4WVBrVUJqWjJv?= =?utf-8?B?eU5jLzdlc1NkNzBqMDhtQU8rY0NUbGpnK3IwbUhWQ2dnZ1NlWHc5dU9la1pF?= =?utf-8?B?OXFsMlNGVjF2SWc3UUhkYnpxL3VudjBRblgzRSt0OTZOZE1UV0Z3LzdqdzRo?= =?utf-8?B?WmxOaGJzSGszMj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Ca05OekdYVFFnZDk0WjRR?= =?utf-8?B?dWY4NThkMGY3Z1h0QUt4RlBFL0pYQytIZW5DUzNFM3lQL3VhaTlHSG0ycVhm?= =?utf-8?B?cnVCV0JPNDFPMEZOUXo4SldLNi9SNVVnTjhGNXJuTjdWd2ltMVVUNno1cmha?= =?utf-8?B?cXc9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <6E7CB3C93F4FF941A3EF635D7B58C045@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: 9a8cc5a7-19b3-42ef-09c0-08dacba01b59 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2022 09:09:34.0059 (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: vPk9amGMth4Gku6tOysH8J1kWKYy5ePIO4q22HEE8eByQISyTZChqxZieTS8cDZIqHk+xGSg6b2T+W+MhPiDFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB6841 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 DQo+ID4gIA0KPiA+ICtzdHJ1Y3QgdGR4X21lbWJ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