From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web09.28437.1655718960760399715 for ; Mon, 20 Jun 2022 02:56:02 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=BZCkMrDV; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: zhihao.li@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655718960; x=1687254960; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xnu09rZciVRgOWgSYBggTGu7IGhvRjSrxvGuBqcCxIk=; b=BZCkMrDVYjJxveZ/KwZDu/s/1MeD7B1XSLSzbfKnfrrnxtWqHZqxzH2T OKfgiXEgGmr7f3pI+L4d+V6+aiTkiCJ0fNotGsk73p7Ch2heMaTSRlG1I Dd7UZA3yUOK4xlQMfY0O6gfVGdtWesp0e+BNHfWC7asDsw+LzlcpPxrY7 kmAHvpsQByP19BVPFbXdHYtG40QlEnucL1jKnMP4xSwT0pe17dYN65MqQ TuTWjKj/G6D1LlPh5b1pEJ7m0aTuwag89W7OD75SyzBTGDqOB98gvCpyM NYqc82uEZ+WiKuZKG4s53CTClGob+wMpqAXk+8sfEvXhyIbfkhVqlb7bj w==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="341536173" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="341536173" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2022 02:55:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="643043323" Received: from sep081ff3625096.sh.intel.com (HELO win_li.ccr.corp.intel.com) ([10.239.157.34]) by fmsmga008.fm.intel.com with ESMTP; 20 Jun 2022 02:55:58 -0700 From: "Li, Zhihao" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Gerd Hoffmann Subject: [PATCH 1/1] OvmfPkg: Add dependency of VariableSmm driver to make it work normally. Date: Mon, 20 Jun 2022 17:55:50 +0800 Message-Id: <20220620095555.1625-2-zhihao.li@intel.com> X-Mailer: git-send-email 2.26.2.windows.1 In-Reply-To: <20220620095555.1625-1-zhihao.li@intel.com> References: <20220620095555.1625-1-zhihao.li@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Zhihao Li REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3D3861 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use SmmCpuRendezvousLib, So add SmmCpuRendezvousLib in OvmfPkg. Cc: Jiewen Yao =0D Cc: Jian J Wang Signed-off-by: Zhihao Li Acked-by: Gerd Hoffmann Reviewed-by: Jiewen Yao --- OvmfPkg/CloudHv/CloudHvX64.dsc | 1 + OvmfPkg/OvmfPkgIa32.dsc | 3 ++- OvmfPkg/OvmfPkgIa32X64.dsc | 3 ++- OvmfPkg/OvmfPkgX64.dsc | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/CloudHv/CloudHvX64.dsc b/OvmfPkg/CloudHv/CloudHvX64.dsc index 380438e0dc0e..20f3bc340807 100644 --- a/OvmfPkg/CloudHv/CloudHvX64.dsc +++ b/OvmfPkg/CloudHv/CloudHvX64.dsc @@ -432,6 +432,7 @@ [LibraryClasses.common.DXE_SMM_DRIVER] !endif=0D BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf=0D PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf=0D + SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezv= ousLib.inf=0D =0D [LibraryClasses.common.SMM_CORE]=0D PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf=0D diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index 2495d7786420..e4218b01f0fc 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -1,7 +1,7 @@ ## @file=0D # EFI/Framework Open Virtual Machine Firmware (OVMF) platform=0D #=0D -# Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
= =0D +# Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.
= =0D # (C) Copyright 2016 Hewlett Packard Enterprise Development LP
=0D # Copyright (c) Microsoft Corporation.=0D #=0D @@ -429,6 +429,7 @@ [LibraryClasses.common.DXE_SMM_DRIVER] !endif=0D BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf=0D PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf=0D + SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezv= ousLib.inf=0D =0D [LibraryClasses.common.SMM_CORE]=0D PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf=0D diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index 4e3104833871..a80cdaacb8bc 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -1,7 +1,7 @@ ## @file=0D # EFI/Framework Open Virtual Machine Firmware (OVMF) platform=0D #=0D -# Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
= =0D +# Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.
= =0D # (C) Copyright 2016 Hewlett Packard Enterprise Development LP
=0D # Copyright (c) Microsoft Corporation.=0D #=0D @@ -435,6 +435,7 @@ [LibraryClasses.common.DXE_SMM_DRIVER] !endif=0D BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf=0D PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf=0D + SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezv= ousLib.inf=0D =0D [LibraryClasses.common.SMM_CORE]=0D PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf=0D diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index f72f8c2e48fe..fb2899f8a1be 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -1,7 +1,7 @@ ## @file=0D # EFI/Framework Open Virtual Machine Firmware (OVMF) platform=0D #=0D -# Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
= =0D +# Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.
= =0D # (C) Copyright 2016 Hewlett Packard Enterprise Development LP
=0D # Copyright (c) Microsoft Corporation.=0D #=0D @@ -444,6 +444,7 @@ [LibraryClasses.common.DXE_SMM_DRIVER] !endif=0D BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf=0D PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf=0D + SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezv= ousLib.inf=0D =0D [LibraryClasses.common.SMM_CORE]=0D PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf=0D --=20 2.26.2.windows.1