/* This code sets variable in storage blocks (Volatile or Non-Volatile). */
EFI_STATUS EFIAPI SmmVariableSetVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)
/* This code sets variable in storage blocks (Volatile or Non-Volatile). */
EFI_STATUS EFIAPI SmmVariableSetVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)
{
  EFI_STATUS  Status;
  mRequestSource = VarCheckFromTrusted;
  Status         = VariableServiceSetVariable (
                     VariableName,
                     VendorGuid,
                     Attributes,
                     DataSize,
                     Data
                     );
  mRequestSource = VarCheckFromUntrusted;
  return Status;
}