summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorXiaoyao Li <xiaoyao.li@intel.com>2024-06-26 05:06:05 -0400
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-04 23:05:22 +0000
commit9389b9a208cc5c7d9b055ea06d92cc4903f705ee (patch)
tree48e8bffb7c149b7b5dcd0dc96126a5d14fd00cf1 /MdePkg
parented9a64af1be2724362b50cf96281de7117ad7bff (diff)
downloadedk2-9389b9a208cc5c7d9b055ea06d92cc4903f705ee.tar.gz
edk2-9389b9a208cc5c7d9b055ea06d92cc4903f705ee.tar.bz2
edk2-9389b9a208cc5c7d9b055ea06d92cc4903f705ee.zip
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 <xiaoyao.li@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Min Xu <min.m.xu@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/IndustryStandard/Tdx.h2
1 files changed, 1 insertions, 1 deletions
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;