mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
6a3fa62327
For vfio-pci device, guest couldn't call this device's acpi method like _DSM/_DSD/_PS0..., in order to let guest run it, crosvm will provide virtual method to guest, this virtual method pass guest method call into host and pass host return value into guest. This commit adds a function into pci device trait, which returns the aml code to construct virtual acpi method. Two pages mmio are used to pass acpi parameters and return value, when guest access the first page, vm exit happens and it is trapped into crosvm, when guest access the second page, no vm exit happens. Co-authored-by: Victor Ding <victording@google.com> BUG=b:194390621 TEST=tools/presubmit Change-Id: I71797394de61437d4d105e65488d36511c71cbd7 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3813137 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Victor Ding <victording@chromium.org> Commit-Queue: Victor Ding <victording@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_skip | ||
Cargo.toml |