Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 68e37f457881d222c68834920f4ffd6f668a2b77
https://github.com/tianocore/edk2/commit/68e37f457881d222c68834920f4ffd6f668a2b77
Author: Ceping Sun <[email protected]>
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 <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Michael Roth <[email protected]>
Acked-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Signed-off-by: Ceping Sun <[email protected]>
Commit: 212cf07aaa149160d37ce3c383a13d012ca45c01
https://github.com/tianocore/edk2/commit/212cf07aaa149160d37ce3c383a13d012ca45c01
Author: Ceping Sun <[email protected]>
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 <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Jiewen Yao <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Signed-off-by: Ceping Sun <[email protected]>
Commit: 8a41004643412b59f669876658bd02b8025bec71
https://github.com/tianocore/edk2/commit/8a41004643412b59f669876658bd02b8025bec71
Author: Ceping Sun <[email protected]>
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 <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Acked-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>
Signed-off-by: Ceping Sun <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/616f0d503707...8a4100464341
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits