diff options
author | Min M Xu <min.m.xu@intel.com> | 2022-12-14 15:14:17 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-12-15 03:07:33 +0000 |
commit | 19f7c63ea978c5a4ef9345b9bf4995dcd48fa328 (patch) | |
tree | 761bb5511627843082a274191be3c3121b2f3f6d | |
parent | 44fc90eb0ea7299abc79577db55aa6257b46b7ae (diff) | |
download | edk2-19f7c63ea978c5a4ef9345b9bf4995dcd48fa328.zip edk2-19f7c63ea978c5a4ef9345b9bf4995dcd48fa328.tar.gz edk2-19f7c63ea978c5a4ef9345b9bf4995dcd48fa328.tar.bz2 |
OvmfPkg/TdTcg2Dxe: Fix incorrect protocol and structure version
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4184
According to the Uefi spec 2.10 Section 38.2.2.
EFI_CC_MEASUREMENT_PROTOCOL.GetCapability, the minor version of
StructureVersion and ProtocolVersion should be 0.
Cc: Erdem Aktas <erdemaktas@google.com> [ruleof2]
Cc: James Bottomley <jejb@linux.ibm.com> [jejb]
Cc: Jiewen Yao <jiewen.yao@intel.com> [jyao1]
Cc: Tom Lendacky <thomas.lendacky@amd.com> [tlendacky]
Cc: Arti Gupta <ARGU@microsoft.com>
Reported-by: Arti Gupta <ARGU@microsoft.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r-- | OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c b/OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c index e9315ec..a6b4f8e 100644 --- a/OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c +++ b/OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c @@ -2411,9 +2411,9 @@ DriverEntry ( mTdxDxeData.BsCap.Size = sizeof (EFI_CC_BOOT_SERVICE_CAPABILITY);
mTdxDxeData.BsCap.ProtocolVersion.Major = 1;
- mTdxDxeData.BsCap.ProtocolVersion.Minor = 1;
+ mTdxDxeData.BsCap.ProtocolVersion.Minor = 0;
mTdxDxeData.BsCap.StructureVersion.Major = 1;
- mTdxDxeData.BsCap.StructureVersion.Minor = 1;
+ mTdxDxeData.BsCap.StructureVersion.Minor = 0;
//
// Get supported PCR and current Active PCRs
|