crosvm/hypervisor/src
Zide Chen 344e2432d1 x86: handle KVM_SYSTEM_EVENT_S2IDLE request
When Crosvm receives a KVM_SYSTEM_EVENT_S2IDLE event, it means the
guest VM is entering s2idle suspend state, and it's requesting the
host to put the whole system in the same state.

If hypervisor sends the request on behalf of a privileged VM, Crosvm
can initiate s2idle suspend on the host since it's been granted with
system power management privileges.

BUG=b:199383670
TEST=trigger s2idle from ChromeOS guest

Change-Id: I589a7e1d93abb5ab971fd58de94ee75df48c3c6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3414635
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Dmytro Maluka <dmaluka@google.com>
Commit-Queue: Allen Webb <allenwebb@google.com>
2022-03-03 22:30:45 +00:00
..
kvm x86: handle KVM_SYSTEM_EVENT_S2IDLE request 2022-03-03 22:30:45 +00:00
aarch64.rs Update to the latest pKVM ABI. 2022-01-04 19:35:27 +00:00
caps.rs Pass HypervisorCap by value rather than reference. 2022-01-28 11:02:45 +00:00
lib.rs x86: handle KVM_SYSTEM_EVENT_S2IDLE request 2022-03-03 22:30:45 +00:00
x86_64.rs crosvm/kvm: enable runtime detection of IOAPIC pins 2021-05-20 00:37:59 +00:00