From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web11.10188.1634917617623869169 for ; Fri, 22 Oct 2021 08:46:58 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: guo.dong@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10145"; a="209428354" X-IronPort-AV: E=Sophos;i="5.87,173,1631602800"; d="scan'208";a="209428354" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2021 08:46:39 -0700 X-IronPort-AV: E=Sophos;i="5.87,173,1631602800"; d="scan'208";a="445333046" Received: from gdong1-mobl1.amr.corp.intel.com ([10.212.41.65]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2021 08:46:39 -0700 From: "Guo Dong" To: devel@edk2.groups.io Cc: Guo Dong , Ray Ni , Maurice Ma , Benjamin You Subject: [`edk2-devel][PATCH V3 0/8] Add SMM variable support for UEFI payload Date: Fri, 22 Oct 2021 08:46:19 -0700 Message-Id: <20211022154627.1607-1-guo.dong@intel.com> X-Mailer: git-send-email 2.32.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Guo Dong V3: Add SMM communication region EFI_ALLOCATED check in UefiPayloadPkg/BlSupportSmm/BlSupportSmm.c V2: Added SMM communication region size check Fixed ECC reported issues and other minor update. https://bugzilla.tianocore.org/show_bug.cgi?id=3084 Currently UEFI payload uses emulated variable driver. So it could not support secureboot and measured boot since both need NV variable support. EDKII already has SMM modules and variable modules. And modern Intel platform supports SPI flash hardware sequence to operate flash. So it is possible to have a common SPI module for Intel platforms. This patch enhances UEFI payload to support SMM variable with a common SPI library for Intel platforms. To avoid impact existing usage, all the new modules are included under SMM_ENABLE and VARIABLE_SUPPORT and by default SMM variable is not be enabled. SMM variable could be enabled only when UNIVERSAL_PAYLOAD is set since non-universal payload need update ParseLib to provide SMM variable related infromation which is not in the plan. Signed-off-by: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Reviewed-by: Ray Ni Reviewed-by: Benjamin You