mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
Add support for injecting an ACPI sleep button event using the command line. Upon receiving crosvm sleep command, emulate vPM1 accordingly and trigger vSCI to the guest if ACPI fixed sleep button event is enabled. Additionally do not mask the ACPI sleep button event in FADT flags for the guest anymore. Quoting ACPI specification regarding the sleep button flag: "If the system does not have a sleep button, this value would be “1” and no sleep button device would be present". BUG=b:194391015 TEST=Boot the VM, issue "crosvm sleepbtn /run/vm/vm.<hash>/crosvm.sock", check guest /sys/firmware/acpi/interrupts/ff_slp_btn counter and if vSCI was injected. With some additional changes (e.g. acpid on the guest) suspend guest by issuing sleepbtn command from the host. Change-Id: Ie50a3a781ba4fbfa04da75186fb5549919a5bd68 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3602867 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Grzegorz Jaszczyk <jaszczyk@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |