From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.20099.1574315153498935219 for ; Wed, 20 Nov 2019 21:45:53 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: ray.ni@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2019 21:45:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,224,1571727600"; d="scan'208";a="357683071" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2019 21:45:47 -0800 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 20 Nov 2019 21:45:47 -0800 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 20 Nov 2019 21:45:47 -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, 21 Nov 2019 13:45:45 +0800 From: "Ni, Ray" To: Jeff Brasen , "edk2-devel@lists.01.org" , "devel@edk2.groups.io" CC: "Gao, Liming" , "Kinney, Michael D" , "Wu, Hao A" , "Gao, Zhichao" , "Zeng, Star" Subject: Re: [PATCH 2/3] MdePkg/MdeModule: Add support for RuntimeServicesSupported variable Thread-Topic: [PATCH 2/3] MdePkg/MdeModule: Add support for RuntimeServicesSupported variable Thread-Index: AQHVm9wf22CgZItrxEWy1MjO3LBO06eVJWtw Date: Thu, 21 Nov 2019 05:45:45 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5C367F4A@SHSMSX104.ccr.corp.intel.com> References: <72ce5d663b7ec7e98eeaf7f26b00803a0b694d14.1573839532.git.jbrasen@nvidia.com> In-Reply-To: <72ce5d663b7ec7e98eeaf7f26b00803a0b694d14.1573839532.git.jbrasen@nvidia.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: ray.ni@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni + VarCheck expert Star Zeng. > -----Original Message----- > From: Jeff Brasen > Sent: Saturday, November 16, 2019 1:43 AM > To: edk2-devel@lists.01.org; devel@edk2.groups.io > Cc: Jeff Brasen ; Gao, Liming ; > Kinney, Michael D ; Wu, Hao A > ; Ni, Ray ; Gao, Zhichao > > Subject: [PATCH 2/3] MdePkg/MdeModule: Add support for > RuntimeServicesSupported variable >=20 > 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. >=20 > Signed-off-by: Jeff Brasen > --- > .../Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c | 11 > +++++++++++ > MdePkg/Include/Guid/GlobalVariable.h | 7 +++++= ++ > 2 files changed, 18 insertions(+) >=20 > 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 > + }, > }; >=20 > 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" >=20 > #endif > -- > 2.7.4