File tree Expand file tree Collapse file tree 21 files changed +656
-695
lines changed
openhcl_attestation_protocol Expand file tree Collapse file tree 21 files changed +656
-695
lines changed Original file line number Diff line number Diff line change @@ -4799,8 +4799,7 @@ dependencies = [
4799
4799
" open_enum" ,
4800
4800
" serde" ,
4801
4801
" serde_json" ,
4802
- " sev_guest_device" ,
4803
- " tdx_guest_device" ,
4802
+ " x86defs" ,
4804
4803
" zerocopy 0.8.24" ,
4805
4804
]
4806
4805
@@ -4824,7 +4823,6 @@ dependencies = [
4824
4823
" sha2" ,
4825
4824
" sidecar_defs" ,
4826
4825
" tdcall" ,
4827
- " tdx_guest_device" ,
4828
4826
" underhill_confidentiality" ,
4829
4827
" x86defs" ,
4830
4828
" zerocopy 0.8.24" ,
@@ -6384,10 +6382,10 @@ dependencies = [
6384
6382
name = " sev_guest_device"
6385
6383
version = " 0.0.0"
6386
6384
dependencies = [
6387
- " bitfield-struct 0.10.1" ,
6388
6385
" nix 0.27.1" ,
6389
6386
" static_assertions" ,
6390
6387
" thiserror 2.0.12" ,
6388
+ " x86defs" ,
6391
6389
" zerocopy 0.8.24" ,
6392
6390
]
6393
6391
@@ -6792,7 +6790,6 @@ version = "0.0.0"
6792
6790
dependencies = [
6793
6791
" hvdef" ,
6794
6792
" memory_range" ,
6795
- " tdx_guest_device" ,
6796
6793
" thiserror 2.0.12" ,
6797
6794
" tracing" ,
6798
6795
" x86defs" ,
@@ -6802,10 +6799,9 @@ dependencies = [
6802
6799
name = " tdx_guest_device"
6803
6800
version = " 0.0.0"
6804
6801
dependencies = [
6805
- " bitfield-struct 0.10.1" ,
6806
6802
" nix 0.27.1" ,
6807
- " static_assertions" ,
6808
6803
" thiserror 2.0.12" ,
6804
+ " x86defs" ,
6809
6805
" zerocopy 0.8.24" ,
6810
6806
]
6811
6807
@@ -6817,6 +6813,7 @@ dependencies = [
6817
6813
" static_assertions" ,
6818
6814
" tdx_guest_device" ,
6819
6815
" thiserror 2.0.12" ,
6816
+ " x86defs" ,
6820
6817
" zerocopy 0.8.24" ,
6821
6818
]
6822
6819
@@ -9766,6 +9763,7 @@ dependencies = [
9766
9763
" arbitrary" ,
9767
9764
" bitfield-struct 0.10.1" ,
9768
9765
" open_enum" ,
9766
+ " static_assertions" ,
9769
9767
" zerocopy 0.8.24" ,
9770
9768
]
9771
9769
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ rust-version.workspace = true
10
10
open_enum.workspace = true
11
11
guid.workspace = true
12
12
mesh.workspace = true
13
- sev_guest_device.workspace = true
14
- tdx_guest_device = { workspace = true , features = [" std" ] }
13
+ x86defs.workspace = true
15
14
16
15
base64.workspace = true
17
16
base64-serde.workspace = true
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ const ATTESTATION_SIGNATURE: u32 = 0x414c4348; // 'HCLA'
18
18
const ATTESTATION_REPORT_SIZE_MAX : usize = SNP_VM_REPORT_SIZE ;
19
19
20
20
pub const VBS_VM_REPORT_SIZE : usize = 0x230 ;
21
- pub const SNP_VM_REPORT_SIZE : usize = sev_guest_device :: protocol :: SNP_REPORT_SIZE ;
22
- pub const TDX_VM_REPORT_SIZE : usize = tdx_guest_device :: protocol :: TDX_REPORT_SIZE ;
21
+ pub const SNP_VM_REPORT_SIZE : usize = x86defs :: snp :: SNP_REPORT_SIZE ;
22
+ pub const TDX_VM_REPORT_SIZE : usize = x86defs :: tdx :: TDX_REPORT_SIZE ;
23
23
/// No TEE attestation report for TVM
24
24
pub const TVM_REPORT_SIZE : usize = 0 ;
25
25
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ zerocopy.workspace = true
30
30
[target .'cfg(target_arch = "x86_64")' .dependencies ]
31
31
safe_intrinsics.workspace = true
32
32
tdcall.workspace = true
33
- tdx_guest_device.workspace = true
34
33
x86defs.workspace = true
35
34
36
35
[build-dependencies ]
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ use tdcall::TdcallOutput;
20
20
use tdcall:: tdcall_hypercall;
21
21
use tdcall:: tdcall_map_gpa;
22
22
use tdcall:: tdcall_wrmsr;
23
- use tdx_guest_device:: protocol:: TdReport ;
24
23
use x86defs:: X64_LARGE_PAGE_SIZE ;
25
24
use x86defs:: tdx:: RESET_VECTOR_PAGE ;
26
25
use x86defs:: tdx:: TdCallResult ;
26
+ use x86defs:: tdx:: TdReport ;
27
27
use x86defs:: tdx:: TdVmCallR10Result ;
28
28
29
29
/// Writes a synthehtic register to tell the hypervisor the OS ID for the boot shim.
Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ fn get_hw_debug_bit(isolation: IsolationType) -> bool {
632
632
match isolation {
633
633
#[ cfg( target_arch = "x86_64" ) ]
634
634
IsolationType :: Tdx => {
635
- use tdx_guest_device :: protocol :: TdReport ;
635
+ use x86defs :: tdx :: TdReport ;
636
636
637
637
use crate :: arch:: tdx:: get_tdreport;
638
638
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ edition.workspace = true
7
7
rust-version.workspace = true
8
8
9
9
[dependencies ]
10
- bitfield-struct.workspace = true
11
10
static_assertions.workspace = true
12
11
zerocopy.workspace = true
13
12
[target .'cfg(target_os = "linux")' .dependencies ]
14
13
nix = { workspace = true , features = [" ioctl" ] }
15
14
thiserror.workspace = true
15
+ x86defs.workspace = true
16
16
17
17
[lints ]
18
18
workspace = true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments