From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web10.15204.1655364818458393132 for ; Thu, 16 Jun 2022 00:33:38 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=VeZVd93m; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: min.m.xu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655364818; x=1686900818; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=QHHWSQyepTVl57Ae8GCzaUZhq0zRvIiWdwlCBwoyNkg=; b=VeZVd93mhhzL1yqh1HB3LzQFgMN7ZDA1fuwDT0ZN7KPcyohJjwEwWMZA x0jyyouNfPQQ2yTi0bFPoza36QrjqxwhDRIctWk69Fz002nAkfVkvLcv/ F9R7z+zy4RdVFmoZGmUKgGZXNoLopFdJzzsPfhIRi6vZlbfHIY4HHq5oS ooQbepEpEBNs747R7a50LdIBy5ztGBKl1dHdciC+wyK7IIAhRsxOTgLBU qs4CNJax/Q8FuBJpwHyZUNFlR+mya/Y0uBOsBfgoJ5TIGTNThaYBf5DsV WpYOpd8OC8btxpuYUzLGjldlG9PCph0Q6iKilU8PNorfO5dlK7aUesA6+ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="340844353" X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="340844353" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 00:33:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="641414789" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga008.fm.intel.com with ESMTP; 16 Jun 2022 00:33:35 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 16 Jun 2022 00:33:35 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 16 Jun 2022 00:33:35 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 16 Jun 2022 00:33:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T19eiU5fC2wIjj8T1azpixPxI5yulmz34BAxPv+AeuFvlOYi8Z0pCYgvHXhxt2dhQLs5UlQwY5dM/m4g7tgqDL31d3D3sfdjBc5GsXP3osDKXD/c3j78dwYsXAXTT4RmW49q16GN89dsREhGkWtiPjHhR3HzrCOZhDk01NXG1r/G/XQa57ApJYDcDHLmhucj12w+MbKwpZIpRfyNNhI8DNP0eLvjXKS67IlArrCduU+kClXIF1nLU2ZxQqxVojrE0V8Zq5cmkQiiV6e33CjEVoaSuR53rXdBXk15DEhZ04gTmfsg7Ipe4Pw78OJlBputkKhBRVh7aBFO2v06i+DEjQ== 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=ziOSIdgsVGIXZKitBn2iaH7NUYStY4mUa9DBWMwrIHE=; b=lNM37EwTQ7mkZOTXJN19j6LdgDVZqC4GcUboezyI547tnUKehXOS6Jk7NRiYm8itv/s9iRLwma0qW3qZ2tj6ZtlJiqdky9ND7GClevrgXR5G9J12hMTVbyq1816FdbXT0kwxD4ALTCRMm3kDE+CvMDCQIEbELunkllMKC+m9hob804jHmqQfLA0R9uGiqkGmH7FzcDN+vLg3vNaHaGS9ZsCTnZIf4hs2rN/stGLN4MwL7fujVVjoeylDWAWPElhn7GzUlOy2N48nUEpAk5aV1feJSaLKTkJZ5i0yeiMrkbkuuV26y+JIxuwbX+rpBWjSqvWzjb97kRX6fvBlfh4ing== 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 PH0PR11MB5064.namprd11.prod.outlook.com (2603:10b6:510:3b::15) by CO6PR11MB5572.namprd11.prod.outlook.com (2603:10b6:303:13c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Thu, 16 Jun 2022 07:33:33 +0000 Received: from PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::a0ea:2e53:9c0e:9148]) by PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::a0ea:2e53:9c0e:9148%4]) with mapi id 15.20.5332.022; Thu, 16 Jun 2022 07:33:33 +0000 From: "Min Xu" To: Gerd Hoffmann CC: "devel@edk2.groups.io" , "dionnaglaze@google.com" , "Aktas, Erdem" , "James Bottomley" , "Yao, Jiewen" , "Tom Lendacky" Subject: Re: [edk2-devel] [PATCH 07/14] OvmfPkg: Add PCD and DEFINEs for Lazy Accept page. Thread-Topic: [edk2-devel] [PATCH 07/14] OvmfPkg: Add PCD and DEFINEs for Lazy Accept page. Thread-Index: AQHYeVGn1O1IU1nzYUeJHNsKK6qAgK1DxN0AgADefwCAAGkHgIAKk93wgACKXgCAANY7AIAAM21QgABjR4CAABuWYA== Date: Thu, 16 Jun 2022 07:33:32 +0000 Message-ID: References: <20220607104550.hz6c7etgxtksylwu@sirius.home.kraxel.org> <20220608061805.vvsjiqt55rqnl3fw@sirius.home.kraxel.org> <20220615080508.oqjojsevfxc4pw3f@sirius.home.kraxel.org> <20220616055117.vrlynishfc5afbld@sirius.home.kraxel.org> In-Reply-To: <20220616055117.vrlynishfc5afbld@sirius.home.kraxel.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4843edd8-a5c9-40d1-3fed-08da4f6a8447 x-ms-traffictypediagnostic: CO6PR11MB5572:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zQe9SQ+1Tgg2WkFOMaNmzgWuTvFnn94yYL3V9ThqHkzGle6J1C1npnLb2eXsDUld1/FE1vNB5eAJ1CPj3T5QvV3uEacmH7p6r0b6JIJ+Ir95jN46Qi0MQandVaxYXEHGwflUFthRqxawYCpNSof3IJjQ8QDoP3LFn3JFtZZPSTVh64FPtT/W3PL8zGd3EnUPbnMkV3+ohs2eE+sOHXXPmlRhsziSGsr93ZzXr/C/s3XCwZnyPLSc9OfZLgt9oE8B2L4tLN0q45opIYiw6cglJkhdOA9gqSMZ0rdpniknNt0oX77APLeEb0qrQCglO7ujr8ZZQVlJKchdB23YdM/dP+Uj0WoiCYpS927Vj3g0zLkltgXGi5Gg/+JCOA8/O3N+b49YEcdb2jrdAAie3zCjplBn8hwmdvVSa6gyWV52l6DTvU35wEtQpeutqSMxYrfwJ5/7ZndAVWEZP8DCHJWUv2zDIw8Nwk8/+WU2R+id6ZOYSFafGUsFWCTLyXMaffoDQK2GY7hfIHURd/LcxXQEnY5a8ZcIi5bqslm8iBxjACh4a+ZxrdcVj/ZDY8pQKjFW9ZkVLR7TrV/Yd3Ndg/YGck/4S6sBxNDPSMAxM7wIXRMNqLrh0y6E4u5s08CZX45eqXeXQA2uyATf+wfnikY6bMw/JFGth2R1e7ntl4aN4S7wKs2elkjwCet2tBx8XY9qiDOtx+nG9jVWFHnSk+p7ug== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5064.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(366004)(508600001)(66446008)(2906002)(8676002)(316002)(54906003)(71200400001)(26005)(8936002)(86362001)(66476007)(5660300002)(64756008)(52536014)(66946007)(76116006)(4326008)(66556008)(9686003)(6916009)(33656002)(82960400001)(83380400001)(186003)(7696005)(6506007)(38100700002)(122000001)(55016003)(38070700005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?plEsLUbDnnqM+//HHTP61xf4b84rk5SfycGs8XC68TfaMBPBer+UQTHXbAjs?= =?us-ascii?Q?L5EkXrZq2ckdMNDH0xny04p+UOTTW7t14TANs9Qq2BJebZCMHdPVZNvCnMrC?= =?us-ascii?Q?1OYWSmQFaeujholXhyotYHvKYGCibKKJ1tu8ETX6mpLkxqVNab1NGml8MfyB?= =?us-ascii?Q?IGXQKkZo8uWtqqeZ97iogchaIayocyzz5SvplEcoEjiFvhXP7IVOH6dJ0n6H?= =?us-ascii?Q?dDG79xnRuEUY1uMTFmMuY9s7dRfy5k4274/WXQfEaGPm7NzYgPtU2xqopif2?= =?us-ascii?Q?6jUDwtz6EzdoX4BUfQrVXq7GmOWO5jD9EAM8HSGlz3uwlbvr8uAX8cXm5I08?= =?us-ascii?Q?x1SB/tBi3CVyHrQYd1FJOPhHlDAzZ6B73JiBXC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?Q?PvmdW7u3ZYvB4jSk5PPtbdTBCJBjrtEP921gZjRgun1F/ldyH3ez+sfYO2Zg?= =?us-ascii?Q?vsa3cZTjCuwvHJvrhiSqG5nf4sEJ+C+XO9hcp5BEooEHUieDtp0jVpFuuEYU?= =?us-ascii?Q?wUt4hrIwnDc4trfmmSo31gHXTR617NZF5Jz1ah/FDpyMNsfQUExRjAYlH9Xb?= =?us-ascii?Q?Id8Y3TLr4Pw3EZj7f83/mU5sUrxxwyf8AGbWuAo78h9AuoT38T+lPvHnlUCR?= =?us-ascii?Q?Je2Was/GRQhblGF9PXcb7D//fFxnD0nHGb2HC4RncH6ArPqV33iiAKVHkjol?= =?us-ascii?Q?7UJlNRh8pP4iVt0Wp9ZvJHfPOAJHvjNkZyPcapmVmd/aU6SrVfaGkCm2aYRQ?= =?us-ascii?Q?Gq8Rdy+xwaznmINwzkS5wsPhC6UZFI7VL+SUeMnNGCLigkjdMRk1oBefF/u3?= =?us-ascii?Q?3PRHwxZWAi5ufr9e7NtGH/Wwme2hhjtSVFQSsZ5zFtUGycDj115ZTnP7c7+3?= =?us-ascii?Q?daLrTGoR+w=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5064.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4843edd8-a5c9-40d1-3fed-08da4f6a8447 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2022 07:33:33.0111 (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: OJETVZLmUMfjM4hfUISSwojfAd0fgOrT3sEsZQ3fQUo4FgDvqwzv2l8zh+J1mtPQfZuDhXWuqahDRl8x8SbBIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR11MB5572 Return-Path: min.m.xu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On June 16, 2022 1:51 PM, Gerd Hoffmann wrote: > > > Tom Lendacky's suggestion for SEV-SNP is to pre-accept all memory > > > under 4GB to make all that complexity go away. Only this approach > > > worked in my own testing. With the MMIO hole it's just validating 3GB= of > memory. > > Accepting all memory under 4GB will make the things much simpler. In th= is > way I think the accept-on-demand maybe not needed. > > A question: is there some performance impact when accepting all memory > under 4GB? >=20 > That would certainly be easiest when it is acceptable from a performance > point of view. Will also simplify the code because you don't have to spl= it the > low memory block into accepted/unaccepted parts. >=20 > It'll be 3G (-machine pc) or 2G (-machine q35) of memory. > Is it possible to accept gigabyte pages btw? Currently the supported page size are 4K and 2M. Gigabyte page size has not= been supported. >=20 > And, yes, this might be enough that accept-on-demand is not needed any > more. Thanks Min