From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.92]) by mx.groups.io with SMTP id smtpd.web08.4755.1625132132383919696 for ; Thu, 01 Jul 2021 02:35:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=Vbue+PGH; spf=pass (domain: microsoft.com, ip: 40.107.236.92, mailfrom: arti.gupta@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pf7llquiPAS6Z5EjKa03gNzlob1VSx5MyV0Hjll0lyz3kvBTWYck+B1WJ4NXnQw0WEp9dkUFt5+nfsy6NU/1so5PPMGQHQHC1olU3ynA6fp7cxWxZgEf336dY2fQFxBT9QOiNatHIdnsSN5lczG73Ki3/XtQdX02lV2UocSiqQMkOt27h6u9ZcbLIghN4iucz348990NyPdvY5Hu0PHZLMlfZLzMCbMV9iQ6Ik6Oqct+ezS5V3j/tA0EXEHpKxfU7FHkudr0kEBrgihOB0NBP9bJR1FYXICHNCGlqyTd+mqSrscoH6OK1NDzZY3Rqh1S+L7ImS/w8yiSzOctm5cvog== 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-SenderADCheck; bh=wzS+qmKtaMhUWH0fDHz+9gq7OX79cRs4fAikHW95npA=; b=GLj5OwICXZDJDh2LT6OvSoIphBMoxXwybAKSYM0PEzaGiH/MUFsZNPCmRycW4m7XAA/QYUj/4UqYDjy61WXIHG4PoGFZYWZFey4C5pTTpa+sz6GIUnsE6PUJJ4a/wwyiIeeKgGSpFQqN1q8L0U2lID0r7xm49FEO15FNtG0sKmeTFEmjNZ8iNP/bAEQrtiigREcIRNqgkBMTEi0ZKAw5R57tvEAgn+5YiUqzyIwDtloqpXYCmcYjW6gbmnQU8nLKNQkcY8/BaTaAqSXZx8x+qP7s2iWenYVU4zL+8TvHPY8qdTMz+wtR1zQOYWhVNKieG4l3LgCnxfvQCzb23MMNaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wzS+qmKtaMhUWH0fDHz+9gq7OX79cRs4fAikHW95npA=; b=Vbue+PGH/cGrwqLZjyyLOcfSIsMVZRJNqbUJ8YLFbHn4rd0t0c+dCtYNZRfg7A3db76Pu4duZPl+d/D3I+RpvfevYv5JoeyPBiIg5GJcQMylYlmIzI3SvL4Rcx7Um9gU3n7/QVQuU4bGiP4mHiUCDRDaK/ULYrv5uZBt9GxEELY= Received: from SJ0PR21MB1872.namprd21.prod.outlook.com (2603:10b6:a03:297::10) by BY5PR21MB1490.namprd21.prod.outlook.com (2603:10b6:a03:237::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.7; Thu, 1 Jul 2021 09:35:30 +0000 Received: from SJ0PR21MB1872.namprd21.prod.outlook.com ([fe80::b83c:47fb:1d74:d2bf]) by SJ0PR21MB1872.namprd21.prod.outlook.com ([fe80::b83c:47fb:1d74:d2bf%9]) with mapi id 15.20.4308.007; Thu, 1 Jul 2021 09:35:29 +0000 From: Arti Gupta To: Bret Barkelew , "devel@edk2.groups.io" Subject: Re: ArmPkg: TranslationTable exceeding TempRam on virtual systems Thread-Topic: ArmPkg: TranslationTable exceeding TempRam on virtual systems Thread-Index: AQHXU09Kn+Pphls3UkGZXpvyKDoNZasuEfww Date: Thu, 1 Jul 2021 09:35:29 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-05-27T23:23:24.4572951Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Privileged authentication-results: microsoft.com; dkim=none (message not signed) header.d=none;microsoft.com; dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ae4ed574-f421-4afe-0b1a-08d93c7390d0 x-ms-traffictypediagnostic: BY5PR21MB1490: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nxlbXq/IB5urKLmBdXuW2AtWuNm+02Mw4OCnj7OvQUuvQO/ZHhmyrs+oSg/0VbVLphSjFcphJWJ02qad46brKFKWMP3miRRW5SsBnDbykEVLQzmpNpNSdpdUwvzEBd6+R9KrchtB16vHgzae/ZCskuviQjakCK1sVpIVOClFivXX77F8EUd+d+7tBOODCAHeL5C43RRSpUsDrA+w4dkj+Fo4cL9G55QTNeDt2b4rC7InrSdYd6wmd0Cg9m4+nKg03tJUZC09gaA06ZZ3lecb7JoJ1E2l4p3wdIRaiWr0BcEZCQxaCg9Hr27058y1n5p91+70/N2M8FYeg8KJwGQPGKsCtZDFNY1ySVXLzYqBH4FvqhzRoAynr0gqP+gIqOtYwabEXDuMdmEQggfp4MdClyCBCCnYdA/KbhWd+z6sYxBtQFNuJGKOQHOxl039g0JIKLs43mV/0WWQrD3jQjh+A2IqfMI4PBybDO3iZgOr7DBuHSiCASl7o0lda7boqtjGqu6Ck3rDhxhyr8Ta+DVjCk2eLM8cmR0KhCPwNlm5LrVF22faAsNsyOMX5DKbXw79iUYgdwepjNK28s5sxvvvOggkuzmjLV8ZSy/ZIpdjrBTJLs0DBaIymQxRR4o629XLJYLCQkdhKCDFBQ54gjVgOw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR21MB1872.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(7696005)(6506007)(83380400001)(26005)(82960400001)(53546011)(186003)(478600001)(10290500003)(9686003)(122000001)(33656002)(82950400001)(38100700002)(55016002)(316002)(66946007)(86362001)(8936002)(8990500004)(66476007)(64756008)(66446008)(8676002)(44832011)(66556008)(71200400001)(52536014)(5660300002)(110136005)(2906002)(4744005)(76116006);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?QcUIP0L29/VJndIvjidqSflPfsQV658leWBG/iC5pw2venACD+JilVqdMrY5?= =?us-ascii?Q?SLQIuEI2CmbFhsFrT5lAN6ay3A891rC2ozlZ8Y6v4iziUGLwO6ZyQN59SgDQ?= =?us-ascii?Q?8LpX+GsLKrorK9cjsQ1TF9vfuyALW9eNbEVkdE8PFGaqs7A5U7zH61vfgWZn?= =?us-ascii?Q?FJACoq7aETlpQsN+I10WAXHK11JuhT9onWReYqVD9RjRP5O64uDT7YR73Gps?= =?us-ascii?Q?ytTVPj+vYvsTC4sR5gaiTtSzvxTAD04TRMRL+xQYTI22+FjmTbpIJsFSiIT0?= =?us-ascii?Q?chuDPNhYDSQm6mYSyt8q1E6bYAQunt60mEZ+xYF7i95itMko7IQUEm1GqHYu?= =?us-ascii?Q?Uvd2OQfaBjjrKdJinsTv4VGhwfN4P4WDftNi70z5zXfAm1JzbhwaFzEeZDiX?= =?us-ascii?Q?sAVSzqcwQCbfyjdnQBtoOoy8NyiynPGQYNcrjOBsKjHy/f6G8vmNPzKCi1Lt?= =?us-ascii?Q?xLRmGR4xmhiaGBULh5f+jbeUtF+iF7lmlcz/5Ix92jOh0m5xqkiFpEMarYUb?= =?us-ascii?Q?rv8wtbU/cg1g9f0VU37tP1x72XETxZP+zguIo3cszbGmp/IrVMNev/zVYSoa?= =?us-ascii?Q?fC05pn2+cd+2ydT5XFv7A2k4wN0aj2oB4qxkrFAym8IrEQMl+Jn5jypOEIqt?= =?us-ascii?Q?IbrIHgIIdtJ2NOmVv564X8VKA3xWC3ooYWf4dYRrDRjFKNUTkFio/+fnb+Zw?= =?us-ascii?Q?VAnWMheb/vlo5kdd3JyFL8iuFIjlOoQzVNQafK2n/4CCLSAmk35wbMdDCgzR?= =?us-ascii?Q?trlXFs+lENuMoe3af1vkH58CfQkUPOa9I4TdGsAJ55Diq+N2xVlJgO7Hog1r?= =?us-ascii?Q?qtN66YKbRZEs3wc68lb9Hn1bZK4dt1Khk1M38qH3tPbugBznqQ50tCUtr2lW?= =?us-ascii?Q?M0AsrykICKb1JvNLt6ks52pIKCTf7kNxYS3L+rrUMHbApnq6gu03YpxCgJVS?= =?us-ascii?Q?A6acGRPXcv9hqIQ3P8GVIiBJshs3AG4Q2mlR46WuWxSABnR/yklOCHlaq+fj?= =?us-ascii?Q?1dGwdUoF5+R9BBPhZLq60vj77o27GpaaCoN4RYjALcoMQeJHm+Ap+3Zc2Yhv?= =?us-ascii?Q?wf65xVql7I9F/hvfmvMpp9Y8G+0vLXjw9Bn3OFGW5XbNK9uXjp3LgFgGjDeN?= =?us-ascii?Q?6J1rSb2haVYBN+lsRaDiJ1cUepKwGnAyDPgHmBPRyZQb7iQxGPLxBjgkDhlw?= =?us-ascii?Q?QBVNUuko5hZTLn4VXRY5r2H2K7zIHW1lzrANLp09tmK43wUzsOKO0V7rh03L?= =?us-ascii?Q?HFZvizh480GP68xtugrcirY/28DE5OpqrekQtBhPaBdBwVlypcT7BcbDHS4S?= =?us-ascii?Q?D5nEWdYY6A0/waBX3MZe4u00?= MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR21MB1872.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae4ed574-f421-4afe-0b1a-08d93c7390d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2021 09:35:29.4162 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: e00P8ZlzNrz0KzTnZL1tzfAzccAq+TqvbxauEOr2L0AZuHZSicf9YusiqLcrfEamjJUr/J7PSiam4Q+RGuCy9h5BWiBhOtNueTXECC48V9g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR21MB1490 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_SJ0PR21MB187259854EEFF7B0A6C2491296009SJ0PR21MB1872namp_" --_000_SJ0PR21MB187259854EEFF7B0A6C2491296009SJ0PR21MB1872namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hey everyone, Wondering if there are more thoughts on the questions Bret has posted below= ? Thanks, Arti From: Bret Barkelew Sent: Thursday, May 27, 2021 4:29 PM To: devel@edk2.groups.io; Arti Gupta Subject: ArmPkg: TranslationTable exceeding TempRam on virtual systems I'm fielding a series of questions coming out of our compatriot team that d= eals with virtual FW (for HyperV). They're seeing ARM64 systems that have l= ots of RAM vastly exceeding the TempRam that's passed into the system due t= o HOB allocations to create all the 4k entries for the early page tables. Is this a known limitation or are we doing something dumb? Is there a way to sparsely populate the page tables and fill them in more i= n DXE? I've seen some questions about 64k pages on the list before. Is that an opt= ion? Thanks in advance! - Bret --_000_SJ0PR21MB187259854EEFF7B0A6C2491296009SJ0PR21MB1872namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hey everyone,

Wondering if there are more thoughts on the question= s Bret has posted below?

Thanks,
Arti

 

From: Bret Barkelew <Bret.Barkelew@microso= ft.com>
Sent: Thursday, May 27, 2021 4:29 PM
To: devel@edk2.groups.io; Arti Gupta <argu@microsoft.com>
Subject: ArmPkg: TranslationTable exceeding TempRam on virtual syste= ms

 

I’m fielding a series of questions coming out = of our compatriot team that deals with virtual FW (for HyperV). They’= re seeing ARM64 systems that have lots of RAM vastly exceeding the TempRam = that’s passed into the system due to HOB allocations to create all the 4k entries for the early page tables.

 

Is this a known limitation or are we doing something= dumb?

Is there a way to sparsely populate the page tables = and fill them in more in DXE?

I’ve seen some questions about 64k pages on th= e list before. Is that an option?

 

Thanks in advance!

 

- Bret

 

--_000_SJ0PR21MB187259854EEFF7B0A6C2491296009SJ0PR21MB1872namp_--