kvm: x86: implement KVM PM-notifier
authorSergey Senozhatsky <senozhatsky@chromium.org>
Sun, 6 Jun 2021 02:10:45 +0000 (11:10 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:33 +0000 (13:09 -0400)
commit7d62874f69d7e5c1c1063a5848075bd1adff3998
tree99764e4ab585d9498acbdf0974ede5855bb08fe0
parent2fdef3a2ae01dfd928c4b42c5a3b76546170a74c
kvm: x86: implement KVM PM-notifier

Implement PM hibernation/suspend prepare notifiers so that KVM
can reliably set PVCLOCK_GUEST_STOPPED on VCPUs and properly
suspend VMs.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Message-Id: <20210606021045.14159-2-senozhatsky@chromium.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Kconfig
arch/x86/kvm/x86.c