From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <jagadeesh.ujja@arm.com>
Received-SPF: Pass (sender SPF authorized) identity=mailfrom;
 client-ip=217.140.101.70; helo=foss.arm.com;
 envelope-from=jagadeesh.ujja@arm.com; receiver=edk2-devel@lists.01.org 
Received: from foss.arm.com (foss.arm.com [217.140.101.70])
 by ml01.01.org (Postfix) with ESMTP id 8C82F21962301
 for <edk2-devel@lists.01.org>; Wed,  2 Jan 2019 05:14:09 -0800 (PST)
Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])
 by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 58E0280D;
 Wed,  2 Jan 2019 05:14:09 -0800 (PST)
Received: from usa.arm.com (a075555-lin.blr.arm.com [10.162.2.152])
 by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BC7533F5CF;
 Wed,  2 Jan 2019 05:14:06 -0800 (PST)
From: Jagadeesh Ujja <jagadeesh.ujja@arm.com>
To: edk2-devel@lists.01.org, liming.gao@intel.com, chao.b.zhang@intel.com,
 leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, Achin.Gupta@arm.com,
 Supreeth.Venkatesh@arm.com, jian.j.wang@intel.com
Date: Wed,  2 Jan 2019 18:43:40 +0530
Message-Id: <1546434828-24405-4-git-send-email-jagadeesh.ujja@arm.com>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1546434828-24405-1-git-send-email-jagadeesh.ujja@arm.com>
References: <1546434828-24405-1-git-send-email-jagadeesh.ujja@arm.com>
Subject: [PATCH v2 03/11] MdeModulePkg: Add a PCD to indicate Standalone MM supports secure variable
X-BeenThere: edk2-devel@lists.01.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: EDK II Development  <edk2-devel.lists.01.org>
List-Unsubscribe: <https://lists.01.org/mailman/options/edk2-devel>,
 <mailto:edk2-devel-request@lists.01.org?subject=unsubscribe>
List-Archive: <http://lists.01.org/pipermail/edk2-devel/>
List-Post: <mailto:edk2-devel@lists.01.org>
List-Help: <mailto:edk2-devel-request@lists.01.org?subject=help>
List-Subscribe: <https://lists.01.org/mailman/listinfo/edk2-devel>,
 <mailto:edk2-devel-request@lists.01.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000
X-List-Received-Date: Wed, 02 Jan 2019 13:14:09 -0000

Add a flag that indicates whether Standalone MM mode supports
secure storage of variables.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jagadeesh Ujja <jagadeesh.ujja@arm.com>
---
 MdeModulePkg/MdeModulePkg.dec | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index 41d2b04..badea4a 100644
--- a/MdeModulePkg/MdeModulePkg.dec
+++ b/MdeModulePkg/MdeModulePkg.dec
@@ -1041,6 +1041,11 @@
   # @Prompt Enable UEFI Stack Guard.
   gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|FALSE|BOOLEAN|0x30001055
 
+  ## This flag indicates secure variable functionality is implemented by Standalone MM
+  #  TRUE  - Secure variable storage supported by Standalone MM code.
+  #  FALSE - Standalone MM code does not support secure storage of variables
+  gEfiMdeModulePkgTokenSpaceGuid.PcdStandaloneMmVariableEnabled|FALSE|BOOLEAN|0x30001056
+
 [PcdsFixedAtBuild, PcdsPatchableInModule]
   ## Dynamic type PCD can be registered callback function for Pcd setting action.
   #  PcdMaxPeiPcdCallBackNumberPerPcdEntry indicates the maximum number of callback function
-- 
2.7.4