From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 10A95221660ED for ; Thu, 30 Nov 2017 03:05:01 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Nov 2017 03:09:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,341,1508828400"; d="scan'208";a="7576998" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 30 Nov 2017 03:09:26 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 30 Nov 2017 03:09:26 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 30 Nov 2017 03:09:26 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.213]) with mapi id 14.03.0319.002; Thu, 30 Nov 2017 19:09:24 +0800 From: "Gao, Liming" To: "Zeng, Star" , "edk2-devel@lists.01.org" Thread-Topic: [PATCH 0/4] Add USED_SIZE FV_EXT_TYPE support Thread-Index: AQHTaPrsC+I5Cwav+0KRq9hkI+bXtaMsxWDA Date: Thu, 30 Nov 2017 11:09:23 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E188593@SHSMSX104.ccr.corp.intel.com> References: <1511950497-9088-1-git-send-email-star.zeng@intel.com> In-Reply-To: <1511950497-9088-1-git-send-email-star.zeng@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 0/4] Add USED_SIZE FV_EXT_TYPE support X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 11:05:02 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: Zeng, Star > Sent: Wednesday, November 29, 2017 6:15 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Gao, Liming > Subject: [PATCH 0/4] Add USED_SIZE FV_EXT_TYPE support >=20 > V2: > The first version did not adjust ExtEntryList in the while loop > of [PATCH 2/4] and [PATCH 4/4], it is a bug and fixed in this V2. >=20 > The USED_SIZE FV_EXT_TYPE is introduced by PI 1.6 spec. >=20 > The EFI_FIRMWARE_VOLUME_EXT_ENTRY_USED_SIZE_TYPE can be used to find > out how many EFI_FVB2_ERASE_POLARITY bytes are at the end of the FV. >=20 > When the FV gets shadowed into memory you only need to copy the used > bytes into memory and fill the rest of the memory buffer with the > erase value. >=20 > Cc: Liming Gao >=20 > Star Zeng (4): > MdePkg PiFirmwareVolume.h: Add USED_SIZE FV_EXT_TYPE definitions > MdeModulePkg PeiCore: Support USED_SIZE FV_EXT_TYPE > MdeModulePkg DxeCore: Check FvImage alignment > MdeModulePkg DxeCore: Support USED_SIZE FV_EXT_TYPE >=20 > MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | 115 ++++++++++++++++++++= +++--- > MdeModulePkg/Core/Pei/FwVol/FwVol.c | 91 +++++++++++++++++++- > MdePkg/Include/Pi/PiFirmwareVolume.h | 23 +++++- > 3 files changed, 211 insertions(+), 18 deletions(-) >=20 > -- > 2.7.0.windows.1