On January 26, 2022 8:06 PM, Gerd Hoffmann wrote:
> > +BOOLEAN
> > +QemuFwCfgIsTdxGuest (
> > +  VOID
> > +  )
> > +{
> > +  CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER  *CcWorkAreaHeader;
> > +
> > +  CcWorkAreaHeader = (CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER
> > +*)FixedPcdGet32 (PcdOvmfWorkAreaBase);
> > +  return (CcWorkAreaHeader != NULL && CcWorkAreaHeader->GuestType ==
> > +GUEST_TYPE_INTEL_TDX); }
> 
> I think once the "SEV BaseMemEncryptLib cleanup" series by Brijesh is merged 
> it
> should be possible to use CcWorkAreaHeader->GuestType to detect both sev
> and tdx and simplify the code here a bit.
> 
Yes. I will simplify the code here once " SEV BaseMemEncryptLib cleanup" is 
done.

Thanks
Min


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86136): https://edk2.groups.io/g/devel/message/86136
Mute This Topic: https://groups.io/mt/88617531/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to