Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme: add migration error codes and their causes #336

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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. |
Loading