On Wed, 2022-02-23 at 12:22 +0100, Gerd Hoffmann wrote: > On Tue, Feb 22, 2022 at 04:53:04PM +0100, Boeuf, Sebastien wrote: > > From: Sebastien Boeuf <sebastien.bo...@intel.com> > > > > Following the model from the Xen target, CloudHv is generated as a > > PVH > > ELF binary to take advantage of the PVH specification. > > > --- /dev/null > > +++ b/OvmfPkg/CloudHv/CloudHvElfHeaderGenerator.c > > Why create a new copy of this? What are the differences to the Xen > version? I guess they are small so we can maybe have a common > ElfPvhHeaderGenerator.c with command line switches?
That's right, I can work on updating the generator to take some parameters so that I won't need the duplication of the file. > > > - OvmfPkg/ResetVector/ResetVector.inf > > + OvmfPkg/XenResetVector/XenResetVector.inf > > Why this is needed? It stores the "Start of day" structure pointer, which is then used by some follow up patches to access hvm_start_info structure (containing the PVH boot information). > > > +DATA = { > > + # > > + # This hex array have been generated by > > OvmfPkg/OvmfXenElfHeaderGenerator.c > > + # and copied manually. > > How about having the generator write a .fdf.inc file which you can > just > include directly without manual copying? I understand the idea, but do you have any pointer to some existing code in the repo already doing such thing? Thanks, Sebastien > > take care, > Gerd > --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#86904): https://edk2.groups.io/g/devel/message/86904 Mute This Topic: https://groups.io/mt/89319391/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-