From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web12.661.1574901282844518524 for ; Wed, 27 Nov 2019 16:34:42 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: liming.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2019 16:34:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,251,1571727600"; d="scan'208";a="409188562" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga005.fm.intel.com with ESMTP; 27 Nov 2019 16:34:41 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 27 Nov 2019 16:34:41 -0800 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 27 Nov 2019 16:34:41 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.127]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.248]) with mapi id 14.03.0439.000; Thu, 28 Nov 2019 08:34:39 +0800 From: "Liming Gao" To: "devel@edk2.groups.io" , "jbrasen@nvidia.com" CC: "Kinney, Michael D" , "Wu, Hao A" , "Ni, Ray" , "Gao, Zhichao" Subject: Re: [edk2-devel] [PATCH v2 2/3] MdePkg/MdeModule: Add support for RuntimeServicesSupported variable Thread-Topic: [edk2-devel] [PATCH v2 2/3] MdePkg/MdeModule: Add support for RuntimeServicesSupported variable Thread-Index: AQHVpXoCMe/8W09Dm0y8HLBQg3PgnqefvBhA Date: Thu, 28 Nov 2019 00:34:38 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E549BA8@SHSMSX104.ccr.corp.intel.com> References: <4c053eca2a0a23288a9df687e24ec7fa005f37bb.1574896889.git.jbrasen@nvidia.com> In-Reply-To: <4c053eca2a0a23288a9df687e24ec7fa005f37bb.1574896889.git.jbrasen@nvidia.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: liming.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Please separate the change per package. You can combine MdePkg changes into= one patch.=20 Thanks Liming >-----Original Message----- >From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of >Jeff Brasen >Sent: Thursday, November 28, 2019 7:25 AM >To: devel@edk2.groups.io >Cc: Gao, Liming ; Kinney, Michael D >; Wu, Hao A ; Ni, Ray >; Gao, Zhichao ; >jbrasen@nvidia.com >Subject: [edk2-devel] [PATCH v2 2/3] MdePkg/MdeModule: Add support for >RuntimeServicesSupported variable > >Add support for new global variable defined in the UEFI 2.8 >specification. This provides a bitmask of which calls are >implemented by the firmware during runtime services. > >Change-Id: If871e16052ecd871fd03a0eef2e3ed5fa5beb93c >Signed-off-by: Jeff Brasen >--- > .../Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c | 11 >+++++++++++ > MdePkg/Include/Guid/GlobalVariable.h | 7 +++++= ++ > 2 files changed, 18 insertions(+) > >diff --git >a/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c >b/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c >index e3bf04a..4264892 100644 >--- a/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c >+++ b/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c >@@ -553,6 +553,17 @@ UEFI_DEFINED_VARIABLE_ENTRY >mGlobalVariableList[] =3D { > }, > NULL > }, >+ { >+ EFI_RUNTIME_SERVICES_SUPPORTED_VARIABLE_NAME, >+ { >+ VAR_CHECK_VARIABLE_PROPERTY_REVISION, >+ VAR_CHECK_VARIABLE_PROPERTY_READ_ONLY, >+ VARIABLE_ATTRIBUTE_BS_RT, >+ sizeof (UINT16), >+ sizeof (UINT16) >+ }, >+ NULL >+ }, > }; > > UEFI_DEFINED_VARIABLE_ENTRY mGlobalVariableList2[] =3D { >diff --git a/MdePkg/Include/Guid/GlobalVariable.h >b/MdePkg/Include/Guid/GlobalVariable.h >index 7abc103..06a8a12 100644 >--- a/MdePkg/Include/Guid/GlobalVariable.h >+++ b/MdePkg/Include/Guid/GlobalVariable.h >@@ -182,5 +182,12 @@ extern EFI_GUID gEfiGlobalVariableGuid; > /// Its attribute is BS+RT. > /// > #define EFI_VENDOR_KEYS_VARIABLE_NAME L"VendorKeys" >+/// >+/// Bitmask of which calls are implemented by the firmware during runtim= e >services. >+/// RT access is required only if GetVariable() is implemented by runtim= e >services. >+/// Should be treated as read-only. >+/// Its attribute is BS+RT. >+/// >+#define EFI_RUNTIME_SERVICES_SUPPORTED_VARIABLE_NAME >L"RuntimeServicesSupported" > > #endif >-- >2.7.4 > > >