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

dbs-virtio-devices: introduce virtio-mem and virtio-balloon devices #263

Closed HerlinCoder closed 1 year ago

HerlinCoder commented 1 year ago

We introduce virtio-mem and virtio-balloon devices to Dragonball-sandbox to support memory update in virtual machine. We also implement expanding feature for address-space to support using these devices in virtual machine.

codecov[bot] commented 1 year ago

Codecov Report

Merging #263 (1d71e7d) into main (c9a182e) will decrease coverage by 1.08%. The diff coverage is 79.77%.

@@            Coverage Diff             @@
##             main     #263      +/-   ##
==========================================
- Coverage   91.59%   90.51%   -1.08%     
==========================================
  Files          80       82       +2     
  Lines       22405    24572    +2167     
==========================================
+ Hits        20521    22241    +1720     
- Misses       1884     2331     +447     
Flag Coverage Δ
dbs-address-space 95.30% <99.46%> (+0.24%) :arrow_up:
dbs-allocator 94.98% <ø> (ø)
dbs-arch 96.37% <ø> (ø)
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.47% <77.96%> (-1.71%) :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-virtio-devices/src/lib.rs 95.30% <ø> (ø)
crates/dbs-virtio-devices/src/mem.rs 76.34% <76.34%> (ø)
crates/dbs-virtio-devices/src/balloon.rs 81.38% <81.38%> (ø)
crates/dbs-address-space/src/region.rs 90.13% <94.44%> (+0.21%) :arrow_up:
crates/dbs-address-space/src/address_space.rs 99.53% <100.00%> (+0.11%) :arrow_up:
crates/dbs-address-space/src/layout.rs 100.00% <100.00%> (ø)

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

HerlinCoder commented 1 year ago

Please add a patch to fix clippy?

fixed