Hi, Liming
Can you help to review this patch?
https://edk2.groups.io/g/devel/message/87480

Thanks
Min
> -----Original Message-----
> From: [email protected] <[email protected]> On Behalf Of Min Xu
> Sent: Saturday, March 12, 2022 9:54 AM
> To: [email protected]
> Cc: Xu, Min M <[email protected]>; Michael Roth <[email protected]>;
> Ni, Ray <[email protected]>; Kumar, Rahul1 <[email protected]>; Dong,
> Eric <[email protected]>; James Bottomley <[email protected]>; Yao,
> Jiewen <[email protected]>; Tom Lendacky <[email protected]>;
> Justen, Jordan L <[email protected]>; Ard Biesheuvel
> <[email protected]>; Aktas, Erdem <[email protected]>; Gerd
> Hoffmann <[email protected]>; Kinney, Michael D
> <[email protected]>; Gao, Liming <[email protected]>; Liu,
> Zhiguang <[email protected]>
> Subject: [edk2-devel] [PATCH V8 12/47] MdePkg: Add macro to check SEV /
> TDX guest
> 
> RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429
> 
> Add macros CC_GUEST_IS_SEV / CC_GUEST_IS_TDX to check SEV / TDX guest.
> 
> Cc: Michael Roth <[email protected]>
> Cc: Ray Ni <[email protected]>
> Cc: Rahul Kumar <[email protected]>
> Cc: Eric Dong <[email protected]>
> Cc: James Bottomley <[email protected]>
> Cc: Min Xu <[email protected]>
> Cc: Jiewen Yao <[email protected]>
> Cc: Tom Lendacky <[email protected]>
> Cc: Jordan Justen <[email protected]>
> Cc: Ard Biesheuvel <[email protected]>
> Cc: Erdem Aktas <[email protected]>
> Cc: Gerd Hoffmann <[email protected]>
> Cc: Michael D Kinney <[email protected]>
> Cc: Liming Gao <[email protected]>
> Cc: Zhiguang Liu <[email protected]>
> Acked-by: Gerd Hoffmann <[email protected]>
> Signed-off-by: Min Xu <[email protected]>
> ---
>  MdePkg/Include/ConfidentialComputingGuestAttr.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/MdePkg/Include/ConfidentialComputingGuestAttr.h
> b/MdePkg/Include/ConfidentialComputingGuestAttr.h
> index 6a1301801519..dd2541c6dcdf 100644
> --- a/MdePkg/Include/ConfidentialComputingGuestAttr.h
> +++ b/MdePkg/Include/ConfidentialComputingGuestAttr.h
> @@ -22,4 +22,7 @@ typedef enum {
>    CCAttrIntelTdx = 0x200,
>  } CONFIDENTIAL_COMPUTING_GUEST_ATTR;
> 
> +#define CC_GUEST_IS_TDX(x)  ((x) == CCAttrIntelTdx) #define
> +CC_GUEST_IS_SEV(x)  ((x) == CCAttrAmdSev || (x) == CCAttrAmdSevEs ||
> +(x) == CCAttrAmdSevSnp)
> +
>  #endif
> --
> 2.29.2.windows.2
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87649): https://edk2.groups.io/g/devel/message/87649
Mute This Topic: https://groups.io/mt/89839571/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to