openanolis / dragonball-sandbox

Dragonball-sandbox is a collection of Rust crates to help build custom Virtual Machine Monitors and hypervisors.
Apache License 2.0
88 stars 41 forks source link

TDX: add dbs-tdx crate #262

Closed studychao closed 1 year ago

studychao commented 1 year ago

We will first add tdx-ioctls for dbs-tdx.

Signed-off-by: fengshifang fengshifang@linux.alibaba.com Signed-off-by: Chao Wu chaowu@linux.alibaba.com

codecov[bot] commented 1 year ago

Codecov Report

Merging #262 (b0cd5da) into main (1a2e876) will decrease coverage by 1.17%. The diff coverage is 78.89%.

@@            Coverage Diff             @@
##             main     #262      +/-   ##
==========================================
- Coverage   91.59%   90.42%   -1.17%     
==========================================
  Files          80       82       +2     
  Lines       22405    24596    +2191     
==========================================
+ Hits        20521    22240    +1719     
- Misses       1884     2356     +472     
Flag Coverage Δ
dbs-address-space 95.30% <99.46%> (+0.24%) :arrow_up:
dbs-allocator 94.98% <ø> (ø)
dbs-arch 96.37% <100.00%> (ø)
dbs-boot 94.90% <ø> (ø)
dbs-device 92.95% <ø> (ø)
dbs-interrupt 90.42% <ø> (ø)
dbs-legacy-devices 92.77% <ø> (ø)
dbs-miniball ∅ <ø> (?)
dbs-upcall 94.31% <ø> (ø)
dbs-utils 91.25% <ø> (ø)
dbs-virtio-devices 87.31% <77.02%> (-1.88%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
crates/dbs-address-space/src/lib.rs 100.00% <ø> (ø)
crates/dbs-upcall/src/lib.rs 97.92% <ø> (ø)
crates/dbs-virtio-devices/src/fs/device.rs 69.84% <ø> (ø)
crates/dbs-virtio-devices/src/lib.rs 95.30% <ø> (ø)
crates/dbs-virtio-devices/src/net.rs 85.71% <0.00%> (-0.86%) :arrow_down:
crates/dbs-virtio-devices/src/vsock/device.rs 79.49% <0.00%> (-3.48%) :arrow_down:
...s/dbs-virtio-devices/src/vsock/muxer/muxer_impl.rs 91.92% <66.66%> (-0.10%) :arrow_down:
crates/dbs-virtio-devices/src/mem.rs 76.34% <76.34%> (ø)
crates/dbs-virtio-devices/src/balloon.rs 80.79% <80.79%> (ø)
crates/dbs-address-space/src/region.rs 90.13% <94.44%> (+0.21%) :arrow_up:
... and 4 more

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

NK-fengsf commented 1 year ago

This crate may be used temporarily,the related function may be implemented in rust-vmm/kvm-ioctls after tdx is supported in upstream guest kernel.