Hi,

> +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.

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86083): https://edk2.groups.io/g/devel/message/86083
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