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-boot: refector fdt related parameters #282

Closed xuejun-xj closed 1 year ago

xuejun-xj commented 1 year ago

This PR does some refector work about fdt. It abstracts parameters used to create_fdt into three structs

Fixes: #276

codecov[bot] commented 1 year ago

Codecov Report

Merging #282 (a412308) into main (04fa7f4) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #282   +/-   ##
=======================================
  Coverage   90.44%   90.44%           
=======================================
  Files          82       82           
  Lines       24597    24597           
=======================================
  Hits        22246    22246           
  Misses       2351     2351           
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.34% <ø> (ø)

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

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

xuejun-xj commented 1 year ago

Add a cache passthrough enable field in FdtVcpuInfo struct. Reserve the interface used in near future. It is used by #274 .