Skip to content

Commit

Permalink
Changing Firmware error structure to use SEV errors and modifying IOC…
Browse files Browse the repository at this point in the history
…TL calls to bubble correct errors

The AMD PSP provides defined SEV errors in the API with clear codes and
mistakes. The library currently only bubbles up IO errors and not the
correct SEV error when IOCTL calls fail. This commit rearranges the
error file to use SEV errors correctly, and then changes the way IOCTL
calls returns errors, so that the appropriate SEV error is bubbled up
when an error is encountered.

Guest IOCTL calls do not fail the same way host IOCTLS do. You need to
manually check for failures even if the ioctl function itself might not
return an error.

Signed-off-by: DGonzalezVillal <[email protected]>
  • Loading branch information
DGonzalezVillal committed Oct 22, 2024
1 parent dfa320e commit fcfe3ed
Show file tree
Hide file tree
Showing 13 changed files with 610 additions and 509 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sev"
version = "4.0.0"
version = "5.0.0"
authors = [
"Nathaniel McCallum <[email protected]>",
"The VirTEE Project Developers",
Expand Down
Loading

0 comments on commit fcfe3ed

Please sign in to comment.