On Fri, Mar 08, 2024 at 07:30:56AM -0800, Lendacky, Thomas via groups.io wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654 > > The SNP_PAGE_STATE_MAX_ENTRY is based on the number of entries that can > fit in the GHCB shared buffer. As a result, the SNP_PAGE_STATE_CHANGE_INFO > structure maps the full GHCB shared buffer based on the shared buffer size > being 2032 bytes. > > Instead of using a hardcoded value for SNP_PAGE_STATE_MAX_ENTRY, use a > build calculated value. Since the SNP_PAGE_STATE_CHANGE_INFO is used as a > mapping, eliminate the hardcoded array size so that the structure can be > used based on any size buffer. > > Cc: Liming Gao <gaolim...@byosoft.com.cn> > Cc: Michael D Kinney <michael.d.kin...@intel.com> > Cc: Zhiguang Liu <zhiguang....@intel.com> > Signed-off-by: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116740): https://edk2.groups.io/g/devel/message/116740 Mute This Topic: https://groups.io/mt/104810697/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-