Expose a virtual device enabling the guest to control the power state of
physical devices through hypercalls provided by pKVM.
Wrap the AArch64 generic DevicePowerManager in that device, to expose
its managed PDs (currently only vfio-platform devices) to the guest:
HvcDevicePowerManager <--> DevicePowerManager <--> [TO HOST...]
^
|
(HVC)
|
v
Guest (driver)
Guard the feature behind the --dev-pm CLI flag.
BUG=b:460349550
TEST=tools/presubmit
Change-Id: I999a2e611621b3393d409e071916037bb54f4385
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/7421205
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Frederick Mayle <fmayle@google.com>
Auto-Submit: Pierre-Clément Tosi <ptosi@google.com>
|
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||