[PATCH 0/2] x86: notify hypervisor/VMM about guest entering s2idle

Grzegorz Jaszczyk
2022-06-09T11:04:02Z

This patchset introduces support which allows to notify first the
hypervisor about guest entering the s2idle state (patch #1) and second
propagate this notification to user-space so the VMM can take advantage
of such notification (patch #2).

Please see individual patches and commit logs for more verbose description.

Zide Chen (2):
x86: notify hypervisor about guest entering s2idle state
KVM: x86: notify user space about guest entering s2idle

Documentation/virt/kvm/api.rst | 21 +++++++++++++++++++++
Documentation/virt/kvm/x86/hypercalls.rst | 7 +++++++
arch/x86/include/asm/kvm_host.h | 2 ++
arch/x86/kvm/x86.c | 18 ++++++++++++++++++
drivers/acpi/x86/s2idle.c | 8 ++++++++
include/linux/suspend.h | 1 +
include/uapi/linux/kvm.h | 2 ++
include/uapi/linux/kvm_para.h | 1 +
kernel/power/suspend.c | 4 ++++
tools/include/uapi/linux/kvm.h | 1 +
10 files changed, 65 insertions(+)

--
2.36.1.476.g0c4daa206d-goog