]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/TdxMailboxLib: Add NULL instance of TdxMailboxLib
authorMin M Xu <min.m.xu@intel.com>
Tue, 20 Dec 2022 08:42:36 +0000 (16:42 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 21 Dec 2022 07:06:17 +0000 (07:06 +0000)
commitb21fe5a8a62441975e03728c25318c11d7732509
treeeceb96b8515c2ec062302590bc31e9c018c61957
parenta00b71b009a60947fec8ace0ac56ab2ece887d97
OvmfPkg/TdxMailboxLib: Add NULL instance of TdxMailboxLib

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4172

TdxMailboxLib is designed only for TDX guest which arch is X64. This
patch set the VALID_ARCHITECTURES of TdxMailboxLib as X64.

Because in the following patches TdxMailboxLib will be included in
PlatformInitLib. While PlatformInitLib is imported by some X64 platforms
(for example AmdSevX64.dsc). So we need a NULL instance of TdxMailboxLib
which VALID_ARCHITECTURES is X64 as well. Based on this consideration
we design TdxMailboxLibNull.

Cc: Erdem Aktas <erdemaktas@google.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf [new file with mode: 0644]