cpuidle-haltpoll: Enable kvm guest polling when dedicated physical CPUs are available
authorWanpeng Li <wanpengli@tencent.com>
Thu, 29 Aug 2019 08:49:57 +0000 (16:49 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Sep 2019 15:46:15 +0000 (17:46 +0200)
commit1328edca4a142ee3c7442d1eece2c3ca383eff35
tree75a50d1d56f31a075fe7d1372a247f654a57a46d
parent472f263660832b90e53bede2020f68cd14f8b76c
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>
arch/x86/kernel/kvm.c
drivers/cpuidle/cpuidle-haltpoll.c