Skip to content

Commit ca76017

Browse files
committed
Create td-shim-interface crate for publishig
Signed-off-by: OuyangHang33 <[email protected]>
1 parent 9b4e454 commit ca76017

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+810
-195
lines changed

Cargo.lock

+147-143
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
@@ -19,6 +19,7 @@ members = [
1919
"tests/test-td-paging",
2020
"tests/test-td-payload",
2121
"xtask",
22+
"td-shim-interface",
2223
]
2324

2425
# the profile used for debug build of `td-shim` and `td-payload`

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ else
1111
export BUILD_TYPE_FLAG=
1212
endif
1313

14-
GENERIC_LIB_CRATES = td-layout td-logger td-uefi-pi td-loader cc-measurement
14+
GENERIC_LIB_CRATES = td-layout td-logger td-shim-interface td-loader cc-measurement
1515
NIGHTLY_LIB_CRATES = td-exception td-paging tdx-tdcall
1616
SHIM_CRATES = td-shim td-payload
1717
TEST_CRATES = test-td-exception test-td-paging

sh_script/fuzzing.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readonly script_name=${0##*/}
88

99
fuzz_folder=(
1010
"td-loader"
11-
"td-uefi-pi"
11+
"td-shim-interface/src"
1212
"td-shim"
1313
)
1414

sh_script/rudra.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ paths=(
2525
"td-paging"
2626
"td-payload"
2727
"td-shim"
28-
"td-uefi-pi"
28+
"td-shim-interface/src"
2929
"td-shim-tools"
3030
"tdx-tdcall"
3131
)

td-layout/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ edition = "2018"
1212
[dependencies]
1313
scroll = { version = "0.10", default-features = false, features = ["derive"]}
1414
log = "0.4.13"
15-
td-uefi-pi = { path = "../td-uefi-pi" }
15+
td-shim-interface = { path = "../td-shim-interface" }
1616

1717
[dev-dependencies]
1818
memoffset = "0.6"

td-payload/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
2323
spin = "0.9"
2424
td-logger = { path = "../td-logger" }
2525
td-shim = { path = "../td-shim", default-features = false }
26-
td-uefi-pi = { path = "../td-uefi-pi" }
26+
td-shim-interface = { path = "../td-shim-interface" }
2727
td-exception = { path = "../td-exception" }
2828
td-paging = { path = "../td-paging" }
2929
x86 = "0.47.0"

td-payload/src/acpi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use alloc::vec::Vec;
66
use scroll::Pread;
77
use spin::Once;
88
use td_shim::TD_ACPI_TABLE_HOB_GUID;
9-
use td_uefi_pi::{
9+
use td_shim_interface::td_uefi_pi::{
1010
hob as hob_lib,
1111
pi::hob::{GuidExtension, Header, HOB_TYPE_END_OF_HOB_LIST, HOB_TYPE_GUID_EXTENSION},
1212
};

td-payload/src/bin/example/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ use td_payload as _;
2626
use td_payload::println;
2727
use td_shim::e820::{E820Entry, E820Type};
2828
use td_shim::{TD_ACPI_TABLE_HOB_GUID, TD_E820_TABLE_HOB_GUID};
29-
use td_uefi_pi::hob;
30-
use td_uefi_pi::pi;
29+
use td_shim_interface::td_uefi_pi::hob;
30+
use td_shim_interface::td_uefi_pi::pi;
3131
use zerocopy::FromBytes;
3232

3333
#[macro_use]

td-payload/src/hob.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use core::mem::size_of;
66
use scroll::Pread;
77
use spin::Once;
8-
use td_uefi_pi::{
8+
use td_shim_interface::td_uefi_pi::{
99
hob::check_hob_integrity,
1010
pi::hob::{HandoffInfoTable, HOB_TYPE_HANDOFF},
1111
};

td-payload/src/mm/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use td_shim::{
1111
e820::{E820Entry, E820Type},
1212
TD_E820_TABLE_HOB_GUID,
1313
};
14-
use td_uefi_pi::{
14+
use td_shim_interface::td_uefi_pi::{
1515
hob as hob_lib,
1616
pi::hob::{GuidExtension, Header, HOB_TYPE_END_OF_HOB_LIST, HOB_TYPE_GUID_EXTENSION},
1717
};

0 commit comments

Comments
 (0)