From 9389b9a208cc5c7d9b055ea06d92cc4903f705ee Mon Sep 17 00:00:00 2001 From: Xiaoyao Li Date: Wed, 26 Jun 2024 05:06:05 -0400 Subject: MdePkg/Tdx.h: Fix the order of NumVcpus and MaxVcpus For TDCALL leaf TDG.VP.INFO, the bit 31:0 in R8 returns NUM_VCPUS and bit 63:32 in R8 returns MAX_VCPUS. Current struct TDCALL_INFO_RETURN_DATA defines them in wrong order. Signed-off-by: Xiaoyao Li Cc: Jiewen Yao Cc: Min Xu Cc: Gerd Hoffmann Cc: Laszlo Ersek --- MdePkg/Include/IndustryStandard/Tdx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Include/IndustryStandard/Tdx.h b/MdePkg/Include/IndustryStandard/Tdx.h index 2662761883..17f1e8f414 100644 --- a/MdePkg/Include/IndustryStandard/Tdx.h +++ b/MdePkg/Include/IndustryStandard/Tdx.h @@ -113,8 +113,8 @@ typedef struct { typedef struct { UINT64 Gpaw; UINT64 Attributes; - UINT32 MaxVcpus; UINT32 NumVcpus; + UINT32 MaxVcpus; UINT64 Resv[3]; } TDCALL_INFO_RETURN_DATA; -- cgit