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-legacy-devices: import cmos device #299

Closed NK-fengsf closed 1 year ago

NK-fengsf commented 1 year ago

For environments which cannot rely on KVM clock, the emulation of Cmos device makes the platform usable. Cmos device can be used in x86 platform only. For AArch64 machines, RTC-PL031 device is implemented.

codecov[bot] commented 1 year ago

Codecov Report

Merging #299 (0ee2d85) into main (7cb8457) will decrease coverage by 0.28%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #299      +/-   ##
==========================================
- Coverage   90.42%   90.15%   -0.28%     
==========================================
  Files          82       83       +1     
  Lines       24596    24671      +75     
==========================================
+ Hits        22240    22241       +1     
- Misses       2356     2430      +74     
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 73.01% <0.00%> (-19.77%) :arrow_down:
dbs-miniball ∅ <ø> (∅)
dbs-upcall 94.31% <ø> (ø)
dbs-utils 91.25% <ø> (ø)
dbs-virtio-devices 87.31% <ø> (+<0.01%) :arrow_up:

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

Impacted Files Coverage Δ
crates/dbs-legacy-devices/src/cmos.rs 0.00% <0.00%> (ø)
crates/dbs-legacy-devices/src/lib.rs 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

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