mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
fd5626c523
Create goldfish battery device model for guest. Provide the minimal properties and basic accessing for the golfish_battery driver in the guest. BUG=chromium:1050432 BUG=b:137890633 TEST=create VM with parameter "--battery" or "--battery=type= goldfish" and boot linux guest with goldfish_battery driver enabled. The goldfish_battery driver is loaded successfully. The /sys/class/power_supply/battery and /sys/class/power_supply/ac are created successfully. TEST=cargo test -p crosvm TEST=goldfish_battery driver is loaded on ARCVM after crrev.com/c/2519336 Change-Id: Iaafa09e3d7e5664d3db8b7df5295f077ec3f6da9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2119572 Commit-Queue: Alex Lau <alexlau@chromium.org> Tested-by: Alex Lau <alexlau@chromium.org> Reviewed-by: Tomasz Jeznach <tjeznach@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |