From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web11.4539.1667297800970170088 for ; Tue, 01 Nov 2022 03:16:41 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=efaFWeQa; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: jiewen.yao@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667297801; x=1698833801; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vzBm/184QyW+jX1PPD9z5jI5G8uVUTN2sxBfi5odjz0=; b=efaFWeQaEKGTCMqUEl0fSxEDjnKVrjkkIEAACQeRGhnNHuZoMltrG5c7 D0SsuXxpEWb0+AIPggMX/7IlxkYd7eqGvgJnkeVIuSBJZWBig2zwWU2b3 RfLYFJ4MfrXd82es7XBKT40EGG3iqXskTrup87u+4jrlPLQHH5i60Zgfl xqibytJDHt5WVHF2hueKvOL2kCENYI5vk76TqOYTxLXKNOxG2vVxcFCDB pudkhKe3ARQm2PUHyVO9aSU1khP9q99CUS8HT5B7IFwbyYIe5xbN9JAq6 vptI3T6D9Fhv015eqlM70N9Qt7cGgBiBbpQd9fpdpI4QNGrK3kJ9NH18v A==; X-IronPort-AV: E=McAfee;i="6500,9779,10517"; a="310202618" X-IronPort-AV: E=Sophos;i="5.95,230,1661842800"; d="scan'208";a="310202618" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 03:16:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10517"; a="963085571" X-IronPort-AV: E=Sophos;i="5.95,230,1661842800"; d="scan'208";a="963085571" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga005.fm.intel.com with ESMTP; 01 Nov 2022 03:16:39 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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; Tue, 1 Nov 2022 03:16:39 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 1 Nov 2022 03:16:39 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 1 Nov 2022 03:16:39 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.109) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 1 Nov 2022 03:16:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nwrEPHjIBSZZcymIfTFOueFdvrGQ77jN50J6Dx8J3yO+gV/QuXUjGWzlwTp7pSGR2BtLi14d545LTk2LM+dtQaLUuy/Nz7r3ka+w7UykWZGvVEsnMNULUsL1bW7imqgbuawYzJXiURLGrk5uWAahWQzag5FdLNweCSeEsWdVm3AyDkVmBIV56QhHjJLoQmQqYHaMXnUV0S+nvKqD7viDeskcCsrTQBGiOdp6Gfp04sid1hj6LiG7VKUA15M+qRO285HLas+NRKmtpG1orVRkZYvVMidKzb7PE9aMvu0Gjo6Xx3YACf3Jpzz7sWXTJt1ki7HVW9GlilM8OZGdK1TPcQ== 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=e8CM7JVa7kIZ/mysi5UiP0L9yLJHsGx7z8OoBY0NByo=; b=n8IDu7/LLDccXQlz7yuI5KDKmCXaVVrpJTiqdkznBRZgMDju+4kxYTdwOMrpotaHNSNcrJotAdL9+eRsu6UfBtH3Gsd4H26ms9ogeakT0Xx0ebf9isaKxgn1VKXT6cPlTZcN5Ia/fbRAUxZa95+/7oZ8LC5OGTbjwa78Zm4UvsktzOAP3r9UPhZvlr5KWfUUScX0hmvm/VwM7sGT1eE/KASaWdQ2N4AEHIAlUpEgTPeuf6z2r0Ag12+pbD/QuZmOkunOChkwSWy7fPi18jwsFj2sqbuSPd9gEKU5GQVTr+iuvdLYqagzv4tWJKtnZOZb/7yM5Crg/mTy/N3/l7lWyQ== 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 MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by PH7PR11MB6452.namprd11.prod.outlook.com (2603:10b6:510:1f3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.33; Tue, 1 Nov 2022 10:16:37 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::8a27:e262:8996:473]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::8a27:e262:8996:473%9]) with mapi id 15.20.5723.033; Tue, 1 Nov 2022 10:16:37 +0000 From: "Yao, Jiewen" To: "devel@edk2.groups.io" , "Yao, Jiewen" , "Xu, Min M" CC: "Gao, Zhichao" , "Kinney, Michael D" , "Liu, Zhiguang" , "Wang, Jian J" , "Gao, Liming" , "Ni, Ray" , "Aktas, Erdem" , Gerd Hoffmann , James Bottomley , Tom Lendacky , "Gao, Jiaqi" Subject: Re: [edk2-devel] [PATCH V5 00/10] Introduce Lazy-accept for Tdx guest Thread-Topic: [edk2-devel] [PATCH V5 00/10] Introduce Lazy-accept for Tdx guest Thread-Index: AQHY7bDGRrK1pzRgiUejKQEd1QgfoK4pxTXggAAVY6A= Date: Tue, 1 Nov 2022 10:16:36 +0000 Message-ID: References: <20221101051349.13-1-min.m.xu@intel.com> <17236A59BF264591.6436@groups.io> In-Reply-To: <17236A59BF264591.6436@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-product: dlpe-windows dlp-reaction: no-action 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: MW4PR11MB5872:EE_|PH7PR11MB6452:EE_ x-ms-office365-filtering-correlation-id: 1e7be9e0-36f6-46df-7d50-08dabbf228e5 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: ExeweKvc3HHcgkCFJHUKG1yDXbz7+9elpVFq9wEm1VOYxi/dJh0nTfFqXUkDWiXjMW4ZYgBIUV6v3aZoQko4JE77HP31qsvr3+7gFvecfoIzSNMTd0kfwSnwbV4kZclB2+PiTKoHg5YSbFLy9QUnybvsJY6naF0xqUCv2yaEzF9ArwHwt++orC+5pZMt8Q+VtSD4YKTo6atO5HIZc8nsBvL0qdvn8SY1a/CbQ78PoVIUXh2cIgUid7M8s3/EphJXiUINUaRSvUgGCce7Vzpn5PtmPMCyEyVqcpBIvF/32IyU7/zo2RzJFhHx5ekrZDdTWTRGMfc3tekjbQEEgZKJpiPpMTNm04U6iuGAC9hXBc6ujvFz/PG95gEbemSZ0ULkASRCB1YWNUMcIXroUR4LI8b6hKbvx9VqQ9hMB/Tk/DxqMzMCuBkquLKAzZ0QZ2xqeFKwgUpIH2Qiy1RT7WR5Gi6jcskbk/jzZ9UBckE6Vugu/9T7RUUguvS/KqPiFpiQpi9NnYHugnt+A/vUuajDxske2xzsHiOHFE/OYXAGPStPsZ5rmyReC/Eo6JjlGIsp6hNyWQiGUwoyvcEIi3BME/v4+NOhWWuTMgQMgE0L2J98LykzOZj95w9Ok4c5kRqwvtYS3Ds7uBk0ju+csatZ9vwU0AQRItFq+IMCOVhpzx24yJFCzVsXNeEDGLTosxcIYmhcbu4bobnarBiUZrqdcwZz39Q0FGq06eOcRmRzxan0TySLi7JbKWyJyi5bSxWDhlLWi42X+CWWzAuBuMI4ITq2q+47JePpZUdLBrShbVcyajj3VmLc5bafpPe/rJIljZ3PPxb+80bv8+7CZXLMdg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5872.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(136003)(366004)(376002)(346002)(396003)(451199015)(86362001)(316002)(2906002)(66446008)(82960400001)(38100700002)(66476007)(66556008)(33656002)(64756008)(478600001)(54906003)(110136005)(186003)(6636002)(107886003)(966005)(55016003)(83380400001)(122000001)(76116006)(8676002)(4326008)(66899015)(7696005)(52536014)(38070700005)(26005)(5660300002)(53546011)(9686003)(41300700001)(71200400001)(19627235002)(6506007)(8936002)(66946007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?syKzxx1TQkwc/oT1sMe33A2eP5sygqdLZgbf2vOwQkA+unuB9jG20OI/A/xe?= =?us-ascii?Q?ECrL4epWLz8g7PQEs3rSeom+Mq6AyBTg5MwdHk8R2/B05go6+tFm21cygozS?= =?us-ascii?Q?kxFxneHN7imolEZp6wwTMHPRm7zI0YM0shD1viq/DZZF39UsCbV8QQTbe5FP?= =?us-ascii?Q?guhBoVzRBnnAxwVx/WFd/neuiH5WVMFugC+jEqS1tY3TVHLG3dLJ9+vRXssd?= =?us-ascii?Q?7gBZX4gJ4+nQT3yBU4KZj4txV2VdZKS/VnenmT3/T1uMmJBPiHgZ4jKJtEpw?= =?us-ascii?Q?H13xkE65w52BnlSCnhj5FrYxbL8HV04AUO1VjaW5GI0qb2DP2o/7ugtIi1M/?= =?us-ascii?Q?6llWrQSJRwNMGVXHdxvsrWp2oxNXj1cRESKXZYJscXxU+DIWH0tkTMAfuD9S?= =?us-ascii?Q?F9Ykcdr6IWrdrkH7P/s6lI/locVB1uztyBe7RTwtdeKk2hoP3rYIpizVaTit?= =?us-ascii?Q?FRbIzDumXNGRdIHttFTgmMzdSAaRSZGMTWsuBYmsXlfXnHKuq5O2BU3r0Gbi?= =?us-ascii?Q?XrQ47jiwJK8p7tKc2+mPiENrsChPwlKz1ImDaQSnMTdqNwGE7qQH/1p5216w?= =?us-ascii?Q?TPy5I0MhoZSlmSFmh7YinDyNwU1lJEfstcddS+4k4K9TRKjNCGr7KJLaxhmG?= =?us-ascii?Q?q0SKtjEY77ARPYbBMyeSe03zooswHtuaiQoBFdE6tgz1X8beSd1CEToCLNS4?= =?us-ascii?Q?iikrlswy9SogVImCivPkTwrC3977gZ1HMHNBoHXj2MVLI6XHcFGZ45IjxA5U?= =?us-ascii?Q?a0AmNrXTwuA9YOYF5+Wfb2LdjTkPrFNWBV17d5ZygmoJklyIBvaN1Aqc7fTD?= =?us-ascii?Q?+lhKhRr6batf626Z1ALypu7gYPtoulDViO04skClXJZApy5ksyKaNuTx0fAr?= =?us-ascii?Q?YLzp/6A2bA/VIRjaMkRnOG/UbJAwSpqCh9JgvkIWUHTxyyomxnnkNIKgf3qm?= =?us-ascii?Q?carIMt6JIkRjIloiHVSAhDWRbKL7ChSAdBbvxxoujGCYr8jCREz6PRakdFlY?= =?us-ascii?Q?bjCqMOcPBD3mXZCpd4iahIQKYgY6Fl1WGjjLy5zVJ8B652ijk8kZAKDfoAkR?= =?us-ascii?Q?WcD0QgJdvmMTIGDluWtNuQJ06wGH4UmtCtdbCv1AlGed1OV20riNrrmzAUWo?= =?us-ascii?Q?WV/LLtGbKc1HF5JDXkhXr1SgEcW+dFdIJ4Zjbt9KdRU35ZXpNmNS4A0LvGgZ?= =?us-ascii?Q?2cAbLEXAfm8OiydBkD6hsdHSfseERTPL8e8dUmLAMUlVLT41mQQ1wO/mLRiH?= =?us-ascii?Q?GrhI3bk2177WmhowkVqKbKYtsfaHNq0RQZEqmLSYyNerIA2MNll0OAZwExmn?= =?us-ascii?Q?U6CGlKVB5ZVDOGmd27c7AFa/F66UkfHeJUJUtG40DV9pWHAtp4HnlQ8HKG+5?= =?us-ascii?Q?VA6nhoPjeY38KZIlD65ZN6c7V90SoxEuF0Xy79091ukWKQ+5lG5NfDzUY2PB?= =?us-ascii?Q?sb6KzhVy37VT640xtmTSSk+xz3/sodvaI9xWvO3VhpIuvrFL0WZUL3DmzFLA?= =?us-ascii?Q?TVWYkVsLLMyPbRmjp9bn00IQmCEiAKh5eFTSFWyOfD9qnkbzqZ2u3SIShPhO?= =?us-ascii?Q?CrmZu9veV+PdR41zswAHJOKl/uRdcS6L0l6csbTf?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e7be9e0-36f6-46df-7d50-08dabbf228e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2022 10:16:36.8641 (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: QERi+AChtdY32xrv/lnl5IA7Mj9Vf6wd54mSsJkmxMdPIsZHlDHcBq7p7/AlsVfZpnxoTsX4Im4llk3TiXT0lw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6452 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Merged https://github.com/tianocore/edk2/pull/3572 > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Yao, > Jiewen > Sent: Tuesday, November 1, 2022 5:00 PM > To: Xu, Min M ; devel@edk2.groups.io > Cc: Gao, Zhichao ; Kinney, Michael D > ; Liu, Zhiguang ; > Wang, Jian J ; Gao, Liming > ; Ni, Ray ; Aktas, Erdem > ; Gerd Hoffmann ; James > Bottomley ; Tom Lendacky > ; Gao, Jiaqi > Subject: Re: [edk2-devel] [PATCH V5 00/10] Introduce Lazy-accept for Tdx > guest >=20 > For OvmfPkg, reviewed-by: Jiewen Yao >=20 > > -----Original Message----- > > From: Xu, Min M > > Sent: Tuesday, November 1, 2022 1:14 PM > > To: devel@edk2.groups.io > > Cc: Xu, Min M ; Gao, Zhichao > > ; Kinney, Michael D > > ; Liu, Zhiguang ; > > Wang, Jian J ; Gao, Liming > > ; Ni, Ray ; Aktas, Erdem > > ; Gerd Hoffmann ; > James > > Bottomley ; Yao, Jiewen ; > > Tom Lendacky ; Gao, Jiaqi > > > > Subject: [PATCH V5 00/10] Introduce Lazy-accept for Tdx guest > > > > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3937 > > > > UnacceptedMemory is one of the four defined types of TD memory in > Intel > > TDX guest. TDVF must invoke TDCALL [TDG.MEM.PAGE.ACCEPT] the > > unaccepted > > memory before use it. See [TDVF] Section 7.1. > > TDVF: https://www.intel.com/content/dam/develop/external/us/en/ > > documents/tdx-virtual-firmware-design-guide-rev-1.01.pdf > > > > It is a time-consuming task which impacts the boot performance badly. > > One of the mitigation is the lazy-accept mechanism. That the whole > system > > memory is divided into 2 parts, one is accepted in bios phase, the othe= r > > is tagged as EfiGcdMemoryTypeUnaccepted and OS will handle these > > "unaccepted" memories. > > See "UEFI Spec v2.9 Table 7-5 Memory Type Usage before > > ExitBootServices()" > > > > As the first stage we accept all the memory under 4G. Please see the > > discussion in https://edk2.groups.io/g/devel/message/93086 > > > > This patch-set is related to code first, so there is a edk2-staging bra= nch. > > Please see https://github.com/tianocore/edk2-staging/tree/TDVF > > > > Patch 1-4: > > Introduce lazy-accept related definitions. > > > > Patch 5-6: > > Update Dxe and shell for unaccepted memory. > > > > Patch 7: > > Update OvmfPkg for unaccepted memory. > > > > Patch 8 - 10: > > Introduce EfiMemoryAcceptProtocol and realize it in TdxDxe. > > > > Code: https://github.com/mxu9/edk2/tree/lazyaccept.v5 > > > > v5 changes: > > - Rebase the patch-set to commit df7ce74e6c75. > > - Add reviewed-by in MdeModulePkg/MdePkg related > patches(#1/2/4/5/8). > > - Add acked-by in patch#7. > > > > v4 changes: > > - To follow the name convention of EDKII code first, the name of > > EFI_RESOURCE_MEMORY_UNACCEPTED is updated to > > BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED. > > - Remove the definition of MaxAcceptedMemoryAddress because in > > current > > stage we will accept all the memory under 4G. So > > MaxAcceptedMemoryAddress is not useable in this assumption. > > - Because this is related to code first, there is edk2-staging branch. > > The branch link is attached. > > https://github.com/tianocore/edk2-staging/tree/TDVF > > > > v3 changes: > > - As the first stage we accept all the memory under 4G. See the > > discussion in https://edk2.groups.io/g/devel/message/93086 > > - "Pool and page functions accept memory when OOM occurs" is dropped. > > See the discussion in https://edk2.groups.io/g/devel/message/93086 > > - PlatformAdjustSystemMemorySizeBelow4gbForLazyAccep is deleted > > because in current stage we accept all the memory under 4G. > > > > v2 changes: > > - Fix a typo that change EfiUnacceptedMemory to > > EfiUnacceptedMemoryType. > > - Define EFI_GCD_MEMORY_TYPE_UNACCEPTED in PrePiDxeCis.h because > it > > has > > not been defined in PI spec. > > - AllocatePages should return EFI_INVALID_PARAMETERS if input > > MemoryType > > is EfiUnacceptedMemoryType. > > - Use EDKII_ prefix instead of EFI_ prefix in the protocol name of > > EDKII_MEMORY_ACCEPT_PROTOCOL_GUID. Because this protocol is not > > EFI > > defined. > > - Accept memory under 4G even if the PcdLazyAcceptPartialMemorySize > is > > bigger than 4G. So with this setting, even if the > > PcdLazyAcceptPartialMemorySize is 0 (which means to accept all > > memories), only the memory under 4G will be accepted. This is to > > optimize the performance. > > > > Cc: Zhichao Gao > > Cc: Michael D Kinney > > Cc: Zhiguang Liu > > Cc: Jian J Wang > > Cc: Liming Gao > > Cc: Ray Ni > > Cc: Erdem Aktas > > Cc: Gerd Hoffmann > > Cc: James Bottomley > > Cc: Jiewen Yao > > Cc: Tom Lendacky > > Signed-off-by: Jiaqi Gao > > Signed-off-by: Min Xu > > > > Jiaqi Gao (1): > > MdePkg: The prototype definition of EdkiiMemoryAcceptProtocol > > > > Min M Xu (9): > > MdeModulePkg: Add PrePiHob.h > > MdePkg: Increase EFI_RESOURCE_MAX_MEMORY_TYPE > > OvmfPkg: Use BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED defined > in > > MdeModulePkg > > MdePkg: Add UEFI Unaccepted memory definition > > MdeModulePkg: Update Dxe to handle unaccepted memory type > > ShellPkg: Update shell command memmap to show unaccepted memory > > OvmfPkg: Introduce lazy accept in PlatformInitLib and PlatformPei > > OvmfPkg: Realize EdkiiMemoryAcceptProtocol in TdxDxe > > OvmfPkg: Call gEdkiiMemoryAcceptProtocolGuid to accept pages > > > > MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 6 + > > MdeModulePkg/Core/Dxe/Mem/Page.c | 63 ++++++++--- > > MdeModulePkg/Include/Pi/PrePiDxeCis.h | 25 +++++ > > MdeModulePkg/Include/Pi/PrePiHob.h | 20 ++++ > > MdePkg/Include/Pi/PiDxeCis.h | 10 +- > > MdePkg/Include/Pi/PiHob.h | 11 +- > > MdePkg/Include/Protocol/MemoryAccept.h | 37 +++++++ > > MdePkg/Include/Uefi/UefiMultiPhase.h | 5 + > > MdePkg/MdePkg.dec | 3 + > > .../BaseMemEncryptTdxLib.inf | 3 + > > .../BaseMemEncryptTdxLib/MemoryEncryption.c | 12 +- > > OvmfPkg/Library/PeilessStartupLib/Hob.c | 5 +- > > OvmfPkg/Library/PlatformInitLib/IntelTdx.c | 98 ++++++++++++++--- > > OvmfPkg/Library/PlatformInitLib/MemDetect.c | 2 + > > OvmfPkg/TdxDxe/TdxDxe.c | 103 ++++++++++++++++++ > > OvmfPkg/TdxDxe/TdxDxe.inf | 2 + > > .../UefiShellDebug1CommandsLib/MemMap.c | 13 +++ > > .../UefiShellDebug1CommandsLib.uni | 3 +- > > 18 files changed, 381 insertions(+), 40 deletions(-) > > create mode 100644 MdeModulePkg/Include/Pi/PrePiDxeCis.h > > create mode 100644 MdeModulePkg/Include/Pi/PrePiHob.h > > create mode 100644 MdePkg/Include/Protocol/MemoryAccept.h > > > > -- > > 2.29.2.windows.2 >=20 >=20 >=20 >=20 >=20