Skip to content

Commit

Permalink
readme: add migration error codes and their causes
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaqi Gao <[email protected]>
  • Loading branch information
gaojiaqi7 committed Jan 24, 2025
1 parent 6a19c8d commit ab8b26b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |

0 comments on commit ab8b26b

Please sign in to comment.