/* Check if the specified confidential computing attribute is active. */
BOOLEAN EFIAPI ConfidentialComputingGuestHas(IN CONFIDENTIAL_COMPUTING_GUEST_ATTR Attr)
/* Check if the specified confidential computing attribute is active. */
BOOLEAN EFIAPI ConfidentialComputingGuestHas(IN CONFIDENTIAL_COMPUTING_GUEST_ATTR Attr)
{
  UINT64  CurrentAttr;
  CurrentAttr = PcdGet64 (PcdConfidentialComputingGuestAttr);
  if (((RShiftU64 (CurrentAttr, 8)) & 0xff) == 1) {
    return AmdMemEncryptionAttrCheck (CurrentAttr, Attr);
  }
  return (CurrentAttr == Attr);
}