Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 68e37f457881d222c68834920f4ffd6f668a2b77 https://github.com/tianocore/edk2/commit/68e37f457881d222c68834920f4ffd6f668a2b77 Author: Ceping Sun <cepingx....@intel.com> Date: 2023-11-09 (Thu, 09 Nov 2023)
Changed paths: M MdePkg/Library/BaseLib/X64/TdVmcall.nasm Log Message: ----------- MdePkg/BaseLib: Update TdVmcall to always output the value in R11 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4572 According to section 3.2 of the [GHCI] spec, if the return status of MapGPA is "TDG.VP.VMCALL_RETRY", TD must retry this operation for the pages in the region starting at the GPA specified in R11. Currently, TDVF has not handled the retry results and always clears the R11 on unsuccessful return status. For this, the TdVmcall needs to output the value of R11 on unsuccessful return status to handle the retry results of MapGPA. Reference: [GHCI]: TDX Guest-Host-Communication Interface v1.0 https://cdrdv2.intel.com/v1/dl/getContent/726790 Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Erdem Aktas <erdemak...@google.com> Cc: James Bottomley <j...@linux.ibm.com> Cc: Min Xu <min.m...@intel.com> Cc: Tom Lendacky <thomas.lenda...@amd.com> Cc: Michael Roth <michael.r...@amd.com> Acked-by: Gerd Hoffmann <kra...@redhat.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn> Signed-off-by: Ceping Sun <cepingx....@intel.com> Commit: 212cf07aaa149160d37ce3c383a13d012ca45c01 https://github.com/tianocore/edk2/commit/212cf07aaa149160d37ce3c383a13d012ca45c01 Author: Ceping Sun <cepingx....@intel.com> Date: 2023-11-09 (Thu, 09 Nov 2023) Changed paths: M MdePkg/Include/IndustryStandard/Tdx.h Log Message: ----------- MdePkg/Tdx.h: Add TDVMCALL_STATUS_RETRY REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4572 TDVMCALL_STATUS_RETRY is defined in GHCI spec section 2.4.1. Reference: [GHCI]: TDX Guest-Host-Communication Interface v1.0 https://cdrdv2.intel.com/v1/dl/getContent/726790 Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Erdem Aktas <erdemak...@google.com> Cc: James Bottomley <j...@linux.ibm.com> Cc: Min Xu <min.m...@intel.com> Cc: Tom Lendacky <thomas.lenda...@amd.com> Cc: Michael Roth <michael.r...@amd.com> Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Jiewen Yao <jiewen....@intel.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn> Signed-off-by: Ceping Sun <cepingx....@intel.com> Commit: 8a41004643412b59f669876658bd02b8025bec71 https://github.com/tianocore/edk2/commit/8a41004643412b59f669876658bd02b8025bec71 Author: Ceping Sun <cepingx....@intel.com> Date: 2023-11-09 (Thu, 09 Nov 2023) Changed paths: M OvmfPkg/Library/BaseMemEncryptTdxLib/MemoryEncryption.c Log Message: ----------- OvmfPkg/BaseMemEncryptTdxLib: Handle retry result of MapGPA REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4572 According to section 3.2 of the [GHCI] document, if the return status of MapGPA is "TDG.VP.VMCALL_RETRY", TD must retry this operation for the pages in the region starting at the GPA specified in R11. In this patch, when a retry state is detected, TDVF needs to retry the mapping with the specified address from the output results of TdVmCall. Reference: [GHCI]: TDX Guest-Host-Communication Interface v1.0 https://cdrdv2.intel.com/v1/dl/getContent/726790 Cc: Erdem Aktas <erdemak...@google.com> Cc: James Bottomley <j...@linux.ibm.com> Cc: Jiewen Yao <jiewen....@intel.com> Cc: Min Xu <min.m...@intel.com> Cc: Tom Lendacky <thomas.lenda...@amd.com> Cc: Michael Roth <michael.r...@amd.com> Cc: Gerd Hoffmann <kra...@redhat.com> Acked-by: Gerd Hoffmann <kra...@redhat.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> Signed-off-by: Ceping Sun <cepingx....@intel.com> Compare: https://github.com/tianocore/edk2/compare/616f0d503707...8a4100464341 _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits