On Tue, Nov 12, 2013 at 11:51:10AM -0800, Jordan Justen wrote:
> On Tue, Nov 12, 2013 at 10:33 AM, Wei Liu <wei.l...@citrix.com> wrote:
> > Hi all
> >
> > Currently OVMF determines memory size by consulting CMOS, then it makes
> > up memory map of its own.
> >
> > Consulting memory size by reading CMOS limits the RAM size to 1TB as
> > there's only 3 bytes from 0x5b-0x5d in CMOS, where the upper memory size
> > is stored.
> >
> > And from Xen's point of view, OVMF should use the memory mapped passed
> > by hypervisor (from hvmloader) instead of making up its own.
> >
> > To solve the above two problems all in one go, I plan to pass necessary
> > information (io resource, mmio resource) to OVMF from Xen.  I will
> > construct the table / structure in hvmloader then hook up platform pei
> > code when OVMF is running on Xen.
> >
> > The first thing that comes in mind is to reuse E820 table for memory map
> > plus some extra fields for io / mmio resources. But I guess UEFI is the
> > new world so stuffs like E820 from old world will be less popular. Any
> > suggestion on existing table / data structure I can use?
> 
> Is OvmfPkg/Include/Guid/XenInfo.h helpful on the OVMF side?
> 

It needs to be extended to hold more information.

> Regarding E820 structures, I guess I'd suggest copying the E820
> structures from
> IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h into a
> new OvmfPkg/Include/IndustryStandard/E820.h file.
> 

Thanks for the pointer.

Wei.

> -Jordan

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to