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: fix balloon 32bit error #286

Closed HerlinCoder closed 1 year ago

HerlinCoder commented 1 year ago

We fixes a problem that offset should be parsed as u32 instead of u64 in virtio-balloon.

Fixes: #284

We add Madvise error type to expose error when setting madvise on guest memory region.

Fixes: #285

codecov[bot] commented 1 year ago

Codecov Report

Merging #286 (eaf7861) into main (8a6d318) will decrease coverage by 0.02%. The diff coverage is 69.23%.

@@            Coverage Diff             @@
##             main     #286      +/-   ##
==========================================
- Coverage   90.44%   90.42%   -0.02%     
==========================================
  Files          82       82              
  Lines       24597    24596       -1     
==========================================
- Hits        22246    22241       -5     
- Misses       2351     2355       +4     
Flag Coverage Δ
dbs-address-space 95.30% <ø> (ø)
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.31% <69.23%> (-0.04%) :arrow_down:

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

Impacted Files Coverage Δ
crates/dbs-virtio-devices/src/lib.rs 95.30% <ø> (ø)
crates/dbs-virtio-devices/src/balloon.rs 80.79% <69.23%> (-0.65%) :arrow_down:

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