[edk2-devel] [PATCH 1/2] UefiCpuPkg/MpInitLib: Ensure SEV-SNP VMSA allocations are not 2MB aligned

Ni, Ray ray.ni at intel.com
Mon Mar 13 08:47:21 UTC 2023


That depends on review from other package maintainers.

> -----Original Message-----
> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Gerd
> Hoffmann
> Sent: Monday, March 13, 2023 4:46 PM
> To: Ni, Ray <ray.ni at intel.com>
> Cc: Tom Lendacky <thomas.lendacky at amd.com>; devel at edk2.groups.io;
> Dong, Eric <eric.dong at intel.com>; Kumar, Rahul R
> <rahul.r.kumar at intel.com>; Michael Roth <michael.roth at amd.com>; Ashish
> Kalra <Ashish.Kalra at amd.com>
> Subject: Re: [edk2-devel] [PATCH 1/2] UefiCpuPkg/MpInitLib: Ensure SEV-
> SNP VMSA allocations are not 2MB aligned
> 
> On Mon, Mar 13, 2023 at 08:28:57AM +0000, Ni, Ray wrote:
> > >
> > > +#define IS_ALIGNED(x, y)  ((((UINTN)(x) & (y - 1)) == 0))
> >
> > 1. Can you use the existing macro ALIGN_POINTER() defined in Base.h?
> 
> Having copies of this all over the tree is indeed a bad idea.
> 
> See https://edk2.groups.io/g/devel/message/100695 which adds this
> and a few more commonly used macros to Base.h.  Can we get that
> reviewed and merged please?
> 
> thanks & take care,
>   Gerd
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#101087): https://edk2.groups.io/g/devel/message/101087
Mute This Topic: https://groups.io/mt/97524218/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/3943202/1813853/130120423/xyzzy [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list