From ab8b26b9386e552eab963d9677e6f07da3771824 Mon Sep 17 00:00:00 2001 From: Jiaqi Gao Date: Thu, 23 Jan 2025 04:07:38 -0500 Subject: [PATCH] readme: add migration error codes and their causes Signed-off-by: Jiaqi Gao --- readme.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/readme.md b/readme.md index 0528a51..3006a55 100644 --- a/readme.md +++ b/readme.md @@ -386,3 +386,18 @@ the MigTD compilation environment for reproducible build. You can use the ``` ./sh_script/docker.sh -f container ``` + +## Migration Error Codes + +If migtd fails to handle the migration request correctly and set the MSK, it will report an error +status to the host VMM. Some common error codes and their causes are summarized as follows: + +| Error Code | Causes | +|:----------:|:------------------------------------------| +| 1 | The data provided by the VMM is not as expected. | +| 3 | MigTD runs out of memory. | +| 4 | TDX Module error, mostly caused by mismatched SERVTD_INFO_HASH. | +| 5 | MigTD fails to establish a communication channel with the host. | +| 6 | TLS error, common causes include failure to verify the quote sent by the remote MigTD, or the handshake being aborted by the remote MigTD. The handshake is usually aborted by the remote MigTD due to its inability to obtain a quote or failure to meet the remote migration policy, the remote MigTD will report error code 7 or 8 in such cases. | +| 7 | MigTD is unable to obtain the quote. | +| 8 | The quote report from the remote MigTD does not meet the requirements of the migration policy. |