/* All APs execute this function in parallel. The BSP executes the function separately. */
STATIC VOID EFIAPI WriteFeatureControl(IN OUT VOID *WorkSpace)
/* All APs execute this function in parallel. The BSP executes the function separately. */
STATIC VOID EFIAPI WriteFeatureControl(IN OUT VOID *WorkSpace)
{
  EFI_HOB_PLATFORM_INFO  *PlatformInfoHob = WorkSpace;
  if (TdIsEnabled ()) {
    TdVmCall (
      TDVMCALL_WRMSR,
      (UINT64)MSR_IA32_FEATURE_CONTROL,
      PlatformInfoHob->FeatureControlValue,
      0,
      0,
      0
      );
  } else {
    AsmWriteMsr64 (
      MSR_IA32_FEATURE_CONTROL,
      PlatformInfoHob->FeatureControlValue
      );
  }
}