[edk2-devel] [PATCH V7 19/37] OvmfPkg/PlatformInitLib: Add memory functions
Min Xu
min.m.xu at intel.com
Tue Mar 8 02:39:07 UTC 2022
On March 2, 2022 2:57 PM, Gerd Hoffmann wrote:
> Hi,
>
> > > Hmm. Unlike patches 17+18 which are pure code motion (except the
> > > function renaming but that doesn't change the workflow) this patch
> > > mixes code changes and code moving which makes it hard to review.
> > >
> > > It should be splitted into one (or more) patches changing the
> > > functions as needed (and keeping the code in PlatformPei), and one
> > > patch moving things over to PlatformInitLib without functional changes.
> > Ok. Looks like #21 & #22 in tdvf_wave2.v6?
> >
> https://github.com/mxu9/edk2/commit/ef0615ca5665b2058e4352a322dfa74
> d25
> > 8f9f31
> >
> https://github.com/mxu9/edk2/commit/25f356a0bf7ee347be30e270aeffe6cb
> d8
> > e0b464
>
> No. The idea is to changes to the code in PlatformPei with small & one-patch-
> per-update patches, which allow easy review. Also helps debugging in case
> something go wrong, when bisecting found the broken patch it's *much*
> easier to find the actual bug when the patch is small.
>
> Rough plan:
>
> (1) a patch allocating PLATFORM_INFO struct in PlatformPei.
> (2) one or more patches moving global variables into PLATFORM_INFO
> struct.
> (3) one or more patches restructing functions. Stuff like like
> splitting functions which set PCDs into two, one for
> PlatformInitLib and one for PlatformPei.
>
> Final step is a pure move from PlatformPei to PlatformInitLib without changing
> code.
>
Thanks for the suggestion. I have created a separated patch-set for PlatformInitLib.
https://edk2.groups.io/g/devel/message/87327
Thanks
Min
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87342): https://edk2.groups.io/g/devel/message/87342
Mute This Topic: https://groups.io/mt/89446168/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list