From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 922327803CD for ; Thu, 27 Jun 2024 22:42:36 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=zCCVkMiwEgMvVgIn4VYir7KNIOWXUYx/xoWGCIIDM6A=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1719528156; v=1; b=OyROKHkISzLrHkkTlbQ5i50VBZAKH6yB8VZfkWt3J2cglg5WsvRKiFBXK8Gh0FLJT6q5AU3X o2XlM7of/KMTX9B8KaMms/1bAqNmqicQg8yo7nil9dvw6bMJx9MonooBqxd6AdsNUEqVfgNrT9d z+YrmxqsnZZr8kFz4eJ88kSHO2DGrrMWaE5oRrybI8Z5rtCOS25n1G0Mj8SeUjDtnPf/L13sVdf Z+uibSo3BQPgSIcecpreZ8ipE5tnumwBOdyB/BVhcfKWj+9ubWYRfQQRXIgKK48FVp8T3/xd6Gh CuSMpL0qjVdWilYSLmwZlTDbk7zP3Q3BfPOumLVjI7X9w== X-Received: by 127.0.0.2 with SMTP id EEtFYY7687511xA2EIvj4F8V; Thu, 27 Jun 2024 15:42:35 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by mx.groups.io with SMTP id smtpd.web10.1787.1719451941307752997 for ; Wed, 26 Jun 2024 18:32:21 -0700 X-CSE-ConnectionGUID: QPUaMznWRo6oJelWe40BaQ== X-CSE-MsgGUID: cwgM/lWxTOy9O+0QmPidXQ== X-IronPort-AV: E=McAfee;i="6700,10204,11115"; a="34089655" X-IronPort-AV: E=Sophos;i="6.08,268,1712646000"; d="scan'208";a="34089655" X-Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 18:32:20 -0700 X-CSE-ConnectionGUID: ddoA2JTgRB6ABjWPmDK2sA== X-CSE-MsgGUID: 8BUPrISXR7SuREYfYNlM+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,268,1712646000"; d="scan'208";a="44110673" X-Received: from lxy-clx-4s.sh.intel.com ([10.239.48.52]) by fmviesa007.fm.intel.com with ESMTP; 26 Jun 2024 18:32:20 -0700 From: "Xiaoyao Li" To: devel@edk2.groups.io Cc: xiaoyao.li@intel.com Subject: [edk2-devel] [PATCH] MdePkg/Tdx.h: Fix the order of NumVcpus and MaxVcpus Date: Wed, 26 Jun 2024 21:26:44 -0400 Message-Id: <20240627012644.2545665-1-xiaoyao.li@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 27 Jun 2024 15:42:29 -0700 Resent-From: xiaoyao.li@intel.com Reply-To: devel@edk2.groups.io,xiaoyao.li@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: GmPXpjY73V3o3BAZ3AHOlDvkx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=OyROKHkI; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io 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/Industr= yStandard/Tdx.h index 2662761883e5..17f1e8f4146a 100644 --- a/MdePkg/Include/IndustryStandard/Tdx.h +++ b/MdePkg/Include/IndustryStandard/Tdx.h @@ -113,8 +113,8 @@ typedef struct { typedef struct {=0D UINT64 Gpaw;=0D UINT64 Attributes;=0D - UINT32 MaxVcpus;=0D UINT32 NumVcpus;=0D + UINT32 MaxVcpus;=0D UINT64 Resv[3];=0D } TDCALL_INFO_RETURN_DATA;=0D =0D --=20 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119726): https://edk2.groups.io/g/devel/message/119726 Mute This Topic: https://groups.io/mt/106918890/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-