cpuidle-haltpoll: Enable kvm guest polling when dedicated physical CPUs are available
The downside of guest side polling is that polling is performed even with other runnable tasks in the host. However, even if poll in kvm can aware whether or not other runnable tasks in the same pCPU, it can still incur extra overhead in over-subscribe scenario. Now we can just enable guest polling when dedicated pCPUs are available. Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Wanpeng Li <wanpengli@tencent.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
472f263660
commit
1328edca4a
@@ -711,6 +711,7 @@ unsigned int kvm_arch_para_hints(void)
|
||||
{
|
||||
return cpuid_edx(kvm_cpuid_base() | KVM_CPUID_FEATURES);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(kvm_arch_para_hints);
|
||||
|
||||
static uint32_t __init kvm_detect(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user