From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web12.20254.1574317491292835285 for ; Wed, 20 Nov 2019 22:24:51 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: star.zeng@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2019 22:24:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,224,1571727600"; d="scan'208";a="197125413" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga007.jf.intel.com with ESMTP; 20 Nov 2019 22:24:49 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 20 Nov 2019 22:24:49 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.108]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.63]) with mapi id 14.03.0439.000; Thu, 21 Nov 2019 14:24:48 +0800 From: "Zeng, Star" To: "Ni, Ray" , 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: AQHVoC7rtvpV8cAw/UyLhBb2eX88eKeVKD9Q Date: Thu, 21 Nov 2019 06:24:48 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB048310404589E7@shsmsx102.ccr.corp.intel.com> References: <72ce5d663b7ec7e98eeaf7f26b00803a0b694d14.1573839532.git.jbrasen@nvidia.com> <734D49CCEBEEF84792F5B80ED585239D5C367F4A@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5C367F4A@SHSMSX104.ccr.corp.intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: star.zeng@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Star Zeng -----Original Message----- From: Ni, Ray=20 Sent: Thursday, November 21, 2019 1:46 PM To: Jeff Brasen ; edk2-devel@lists.01.org; devel@edk2.g= roups.io Cc: Gao, Liming ; Kinney, Michael D ; Wu, Hao A ; Gao, Zhichao ; Zeng, Star Subject: RE: [PATCH 2/3] MdePkg/MdeModule: Add support for RuntimeServicesS= upported variable 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