From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (NAM04-BN8-obe.outbound.protection.outlook.com [40.107.100.136]) by mx.groups.io with SMTP id smtpd.web08.5706.1627536196068787746 for ; Wed, 28 Jul 2021 22:23:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=I+aa7iqa; spf=pass (domain: microsoft.com, ip: 40.107.100.136, mailfrom: arti.gupta@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q21Uv2IKDPcFXGfQgSjrKKOHQ3pX66V0pHojFjLY4SKsvVLOXon2zvly19wev4ehhGg7RzrOxBgxT3hYVOtTNpcV1VciremfXuyvOChSMkF4AIZ02Q8QkmLSKk1T1xcA4vsdie2RyclwSGMkbDPJwmA5rRADuXIRwA80xQJmlPzYzcQXmLEgMPgxB57u6IWjIS7ePpiPKB+3kuOFE27US1Lt/ME/m7tE5UxoT47RBVP0bSKJPwlukaWRMq/DryOUc6gR5OwCbZwPAypiz2rK+UvfOU1r+cQTIbcqLLqEU1EfuJv6YMuYOyMOqdBpW+uAcjZ+FiwVNBhDwn2S63iE2A== 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=DsVdTyE8cCU+E4NSatVmFsNSrZKrql0PJRSe4aT+m2c=; b=kuXIe7OEuzDbuhLdn3845F6xwNrpxJ2XW6fmpoHe1vOeBtY1xX4AMoHgzy8qmQAVEdieTnufrzbDeF9CFK8susvonr6viTOE1MaKPRqYKOGk2x6HOliL4d7eTLCGorOwyWernhkJPq1ymHoerHNFiRy3f6zobNReA+PeXmPAlYAV+B5o8O0Fn2ZpAt6PaaT8miMWkL798ty8BMrmPPLCsug6UaeT9azVL43KUqfgvBjz945LFlI5kEI7QW6jgNUjz7ekoP1/sg+fIZljVFya94we5XqAesEo56VCQkCYchIMNECeMA+jbcPTNz3a6nDj0yIGKe6KLNSzbbFuFnlRTA== 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=DsVdTyE8cCU+E4NSatVmFsNSrZKrql0PJRSe4aT+m2c=; b=I+aa7iqawnqn6afrSvG8rbTIXdWDQlDi0LtnRRQqdYqHnFX1PE6zpjW1rC/ggqmcK6GZZ2TVFQRBALPMhyS1ouo3blkg/ePeaRAdRbmj9sSwTFGSJY0YRS5p664jrtHhaCTr4eVxGVyhGU1HEUhJgnxYxGVQ5grSWkYFsAKj97E= Received: from MW4PR21MB1857.namprd21.prod.outlook.com (2603:10b6:303:74::12) by MW4PR21MB1906.namprd21.prod.outlook.com (2603:10b6:303:67::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.8; Thu, 29 Jul 2021 05:23:12 +0000 Received: from MW4PR21MB1857.namprd21.prod.outlook.com ([fe80::a93c:b4be:1f93:8920]) by MW4PR21MB1857.namprd21.prod.outlook.com ([fe80::a93c:b4be:1f93:8920%7]) with mapi id 15.20.4373.002; Thu, 29 Jul 2021 05:23:12 +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+Pphls3UkGZXpvyKDoNZasuEfwwgCu60dA= Date: Thu, 29 Jul 2021 05:23:11 +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: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1dc9699d-32d0-4c9e-4789-08d95250f58b x-ms-traffictypediagnostic: MW4PR21MB1906: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1923; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yJz81FXbLqRzx8ql7dFGK2OX2ZY3p5VKCjaadu1lml0GnZSeSQpUVf7IGpeQUN2rcfvPldiLESU5sZaM2yTbuXFbjfKKhIu4aQ8gcW7JvAEnecKAFkKTAahEkiwIcYXozIQnvXX9l+9edVFErQw0GpYKGNfbD3BHZq3HOf85DlMG4f5BMHo12yZP3IRbsP9B7A6wUIyoxnCS7UvFF7NLgwDwGpZgdNVW3hJkittTPkCM12A7CP4Mepys6/nUFOG0NTsuKx1FeA6jGSvAyN5osiNFTbz2gL2t4Vg90KbgtZvoIpXRhDXRQmobnYrbkRGGH+CahZy/ZS53u3/5e/DG/UOn4A45020EXQbe4G0MI6yHyK58bKYi9/VdRH5alPrO83FSiGMUxKegQQ46jp/q+g2il571Wnx4YxEcEWwn8PtaF1OYn/RLHm0O/Uyr0umjNh6SkpYKBgyTsVn1DIJ1yDv+5Vtjo/QQbLUBhFORFVaCvMgXofPdiWm4FHCP7NV+xBBkzkKreI+w7IGQXMwL6FL9ol/RVxjHrtWXQnyp1lC4Nsj8u0vQZqXgJ40K9W5P2aFnF3sawlebLjygNTrHIAYZs7ltJlJyoVPqFwy3hUFLSg0XGZGyhwoQ4u5MVtMLXmFesHVmRXslsLehzOgOPgqymH7642nHX4jh2DcvwatPr0KIPS+oioruJyLo5fIt9z9YeVALlCfmBLd2B7ij4Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR21MB1857.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(2906002)(33656002)(8936002)(7696005)(71200400001)(8990500004)(110136005)(316002)(8676002)(5660300002)(64756008)(66446008)(9326002)(52536014)(44832011)(82960400001)(9686003)(10290500003)(82950400001)(186003)(508600001)(66556008)(66946007)(55016002)(38070700005)(66476007)(38100700002)(122000001)(53546011)(86362001)(83380400001)(6506007)(26005)(76116006);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?M2Hm2ybonIDER7BW9mReQWLGOqEMN4koIyKZWKORlsblG2kznnmtRs48vX1h?= =?us-ascii?Q?enqPKd2tRqopLrVpolvbzB9JU5qntMkB3Uu5gSW98Lczaf5XDgmxKxApckj8?= =?us-ascii?Q?dcbJiYxcZpsPI+wLbkbOQ9RBLgHbFUrKl62mBBQFVroSwO2sPORhyboV5G9A?= =?us-ascii?Q?hcJPdLeyYdzZQB5TClqVDfrfIobpsZyBtYxfUFjIVTeqeGJWeA2neg3J6daR?= =?us-ascii?Q?kbHcQQVdlL2cVIRCvaoQwTbW2bZGJcQXdP28htumOrcGuCFtW64HP3lZ4wEE?= =?us-ascii?Q?hAVgIu5g6GmoJztO72K3coBu5nvcE3iiZuLHMG1g/lLKJXuyP6dfFYnnC85T?= =?us-ascii?Q?8OfFdmbzqXgChqpGBXZ4e2+HXga4qZzJiO6rkAY4pKGYPxSGmhDCXB/ltTeE?= =?us-ascii?Q?wLbFkbnjzkFNr+WzSi8RENK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GjcpJqhwSnqXf4S7MU5L0xAL?= MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR21MB1857.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1dc9699d-32d0-4c9e-4789-08d95250f58b X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2021 05:23:11.8907 (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: fx0qUFX32BXzWE4npB6O2Clitm4m8DhlIGmWBblcgVofYAqaNpKQK517vbw29fux5oQ/boowu1eZk6MA13bWnrNAhFm7JLBW3mS3Y59LieE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR21MB1906 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MW4PR21MB18574F6C3EC46F8A032C175F96EB9MW4PR21MB1857namp_" --_000_MW4PR21MB18574F6C3EC46F8A032C175F96EB9MW4PR21MB1857namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Hoping to find a solution here. Would someone mind helping me with this? Thanks a lot, Arti From: Arti Gupta Sent: Thursday, July 1, 2021 2:35 AM To: Bret Barkelew ; devel@edk2.groups.io Subject: RE: ArmPkg: TranslationTable exceeding TempRam on virtual systems 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_MW4PR21MB18574F6C3EC46F8A032C175F96EB9MW4PR21MB1857namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

Hoping to find a solution here. Would someone mind h= elping me with this?

Thanks a lot,

Arti

 

From: Arti Gupta
Sent: Thursday, July 1, 2021 2:35 AM
To: Bret Barkelew <Bret.Barkelew@microsoft.com>; devel@edk2.gr= oups.io
Subject: RE: ArmPkg: TranslationTable exceeding TempRam on virtual s= ystems

 

Hey everyone,

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

Thanks,
Arti

 

 

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_MW4PR21MB18574F6C3EC46F8A032C175F96EB9MW4PR21MB1857namp_--