Skip to content

Commit

Permalink
fix(shim-sev): cleanup interrupt handling
Browse files Browse the repository at this point in the history
Remove unused code from the `idt` copypasta and reduce it to the
absolute minimum.

As soon as `x86_64` > 0.14.6 is released, `InterruptStackFrame`
and `InterruptStackFrameValue` can be removed also, see
rust-osdev/x86_64#312

Signed-off-by: Harald Hoyer <harald@profian.com>
  • Loading branch information
haraldh authored and npmccallum committed Oct 18, 2021
1 parent e9e3331 commit 18a3f65
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 225 deletions.
1 change: 1 addition & 0 deletions internal/shim-sev/Cargo.lock

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

2 changes: 2 additions & 0 deletions internal/shim-sev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ test = false
sallyport = { git = "https://github.com/enarx/sallyport", rev = "d016f8c6afd50ae2694ddc2d2afea4eec7301a41", features = [ "asm" ] }
rcrt1 = { git = "https://github.com/enarx/rcrt1", rev = "b28f711" }
compiler_builtins = { version = "0.1", default-features = false, features = [ "mem" ] }
# FIXME: can be removed with the release of `x86_64` > 0.14.6
volatile = "0.4.4"
x86_64 = { version = "^0.14.6", default-features = false, features = ["instructions", "inline_asm"] }
goblin = { version = "0.4", default-features = false, features = [ "elf64" ] }
crt0stack = { version = "0.1", default-features = false }
Expand Down
Loading

0 comments on commit 18a3f65

Please sign in to comment.