[edk2-devel] [PATCH v3 1/5] UefiCpuPkg/SmmBaseHob.h: Add SMM Base HOB Data
Gerd Hoffmann
kraxel at redhat.com
Wed Feb 1 13:02:55 UTC 2023
On Sun, Jan 29, 2023 at 05:08:49AM +0000, Wu, Jiaxin wrote:
> >
> > For the smbase case it might also be possible to store the base
> > address and the per-cpu entry size, then use
> >
> > smbase = base + size * cpuindex
> >
> > to calculate the per-cpu base address. Puts some restrictions on the
> > memory allocation (must be one big block), not sure this is possible,
> > that part of the code is not (yet?) posted for review.
>
>
> It's not a good idea that only store the start address of smbase and
> the per-cpu entry size. There are multiple algorithms to calculate
> each cpu's smbase, if hob producer (any peim) & consumer (SMM CPU
> driver) use different algorithm for each cpu's smbase, then there will
> be a big problem.
The algorithm needs to be part of the HOB specification of course.
take care,
Gerd
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#99400): https://edk2.groups.io/g/devel/message/99400
Mute This Topic: https://groups.io/mt/96350760/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