From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web08.1452.1609823140457571415 for ; Mon, 04 Jan 2021 21:05:40 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: michael.d.kinney@intel.com) IronPort-SDR: T/a2RrwFZwhKAEh4PjPO6PUFK3Edu/W9jyGjRVlJeeKCBB8IOR+FSfILRKf6VpZjk8Gwf3gZNe Lp/0cB7tJ+qw== X-IronPort-AV: E=McAfee;i="6000,8403,9854"; a="261816970" X-IronPort-AV: E=Sophos;i="5.78,476,1599548400"; d="scan'208";a="261816970" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2021 21:05:31 -0800 IronPort-SDR: 0595+YY8sIQ+Zrj9tghYTzFnfFNtXjiljnhpJo1hgv+0kpuM2Gotnt2y7V9Olrw66d3VTiV7Ji H3LUuPUtaMEg== X-IronPort-AV: E=Sophos;i="5.78,476,1599548400"; d="scan'208";a="378720569" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.254.77.44]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2021 21:05:31 -0800 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Hao A Wu , Liming Gao , Bret Barkelew Subject: [stable/202011][Patch 0/2] MdeModulePkg/Variable/RuntimeDxe:Restore Variable Lock Protocol behavior Date: Mon, 4 Jan 2021 21:05:20 -0800 Message-Id: <20210105050522.1178-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.29.2.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit https://bugzilla.tianocore.org/show_bug.cgi?id=3111 Cherry-pick the following commits from edk2/master to stable/202011. (cherry picked from commit dcaa93936591883aa7826eb45ef00416ad82ef08) (cherry picked from commit a18a9bde36d2ffc12df29cdced1efa1f8f9f2021) Cc: Michael D Kinney Cc: Hao A Wu Cc: Liming Gao Signed-off-by: Bret Barkelew Bret Barkelew (1): MdeModulePkg/Variable/RuntimeDxe: Restore Variable Lock Protocol behavior Michael D Kinney (1): MdeModulePkg/Variable/RuntimeDxe: Add Variable Lock Protocol Unit Tests MdeModulePkg/Test/MdeModulePkgHostTest.dsc | 11 + .../VariableLockRequestToLockUnitTest.c | 565 ++++++++++++++++++ .../VariableLockRequestToLockUnitTest.inf | 36 ++ .../RuntimeDxe/VariableLockRequestToLock.c | 95 +-- 4 files changed, 671 insertions(+), 36 deletions(-) create mode 100644 MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/VariableLockRequestToLockUnitTest.c create mode 100644 MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/VariableLockRequestToLockUnitTest.inf -- 2.29.2.windows.2