Skip to content

Commit f0ffc76

Browse files
authored
Merge pull request #515 from msft-jlange/tdcall
platform/tdp: replace tdx-tdcall crate with local implementation
2 parents e05e583 + c84dd93 commit f0ffc76

File tree

9 files changed

+368
-165
lines changed

9 files changed

+368
-165
lines changed

Cargo.lock

+8-117
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ libfuzzer-sys = "0.4"
4545
log = "0.4.17"
4646
p384 = { version = "0.13.0" }
4747
sha2 = "0.10.8"
48-
tdx-tdcall = "0.2.1"
4948
uuid = "1.6.1"
5049
# Add the derive feature by default because all crates use it.
5150
zerocopy = { version = "0.8.2", features = ["alloc", "derive"] }

kernel/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ igvm_defs = { workspace = true, features = ["unstable"] }
3333
intrusive-collections.workspace = true
3434
log = { workspace = true, features = ["max_level_info", "release_max_level_info"] }
3535
packit.workspace = true
36-
tdx-tdcall.workspace = true
3736
libtcgtpm = { workspace = true, optional = true }
3837
zerocopy.workspace = true
3938

kernel/src/error.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use crate::sev::msr_protocol::GhcbMsrError;
2727
use crate::sev::SevSnpError;
2828
use crate::syscall::ObjError;
2929
use crate::task::TaskError;
30+
use crate::tdx::TdxError;
3031
use elf::ElfError;
3132
use syscall::SysCallError;
3233

@@ -58,7 +59,7 @@ pub enum SvsmError {
5859
/// Errors related to SEV-SNP operations, like PVALIDATE or RMPUPDATE
5960
SevSnp(SevSnpError),
6061
/// Errors related to TDX operations
61-
Tdx,
62+
Tdx(TdxError),
6263
/// Generic errors related to memory management
6364
Mem,
6465
/// Errors related to the memory allocator

kernel/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub mod string;
3737
pub mod svsm_paging;
3838
pub mod syscall;
3939
pub mod task;
40+
pub mod tdx;
4041
pub mod types;
4142
pub mod utils;
4243
#[cfg(all(feature = "vtpm", not(test)))]

0 commit comments

Comments
 (0)