summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/Kconfig
diff options
context:
space:
mode:
authorSergey Senozhatsky <senozhatsky@chromium.org>2021-06-06 05:10:45 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2021-06-17 20:09:33 +0300
commit7d62874f69d7e5c1c1063a5848075bd1adff3998 (patch)
tree99764e4ab585d9498acbdf0974ede5855bb08fe0 /arch/x86/kvm/Kconfig
parent2fdef3a2ae01dfd928c4b42c5a3b76546170a74c (diff)
downloadlinux-7d62874f69d7e5c1c1063a5848075bd1adff3998.tar.xz
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>
Diffstat (limited to 'arch/x86/kvm/Kconfig')
-rw-r--r--arch/x86/kvm/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig
index f6b93a35ce14..7a78b88c0f1a 100644
--- a/arch/x86/kvm/Kconfig
+++ b/arch/x86/kvm/Kconfig
@@ -46,6 +46,7 @@ config KVM
select KVM_GENERIC_DIRTYLOG_READ_PROTECT
select KVM_VFIO
select SRCU
+ select HAVE_KVM_PM_NOTIFIER if PM
help
Support hosting fully virtualized guest machines using hardware
virtualization extensions. You will need a fairly recent