Commit ad087376 authored by Alexander Graf's avatar Alexander Graf Committed by Avi Kivity

KVM: PPC: Force enable nap on KVM

There are some heuristics in the PPC power management code that try to find
out if the particular hardware we're running on supports proper power management
or just hangs the machine when going into nap mode.

Since we know that KVM is safe with nap, let's force enable it in the PV code
once we're certain that we are on a KVM VM.
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent df08bd10
...@@ -582,6 +582,9 @@ static int __init kvm_guest_init(void) ...@@ -582,6 +582,9 @@ static int __init kvm_guest_init(void)
if (kvm_para_has_feature(KVM_FEATURE_MAGIC_PAGE)) if (kvm_para_has_feature(KVM_FEATURE_MAGIC_PAGE))
kvm_use_magic_page(); kvm_use_magic_page();
/* Enable napping */
powersave_nap = 1;
free_tmp: free_tmp:
kvm_free_tmp(); kvm_free_tmp();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment