cpuidle-haltpoll: disable host side polling when kvm virtualized
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 3 Jul 2019 23:51:29 +0000 (20:51 -0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Jul 2019 15:27:37 +0000 (17:27 +0200)
commita1c4423b02b2121108e3ea9580741e0f26309a48
treec2b6c2842065c7ed359f997580078ca00ad02fe3
parent2cffe9f6b96fece065ee8522673c90e92ef2085d
cpuidle-haltpoll: disable host side polling when kvm virtualized

When performing guest side polling, it is not necessary to
also perform host side polling.

So disable host side polling, via the new MSR interface,
when loading cpuidle-haltpoll driver.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/Kconfig
arch/x86/include/asm/cpuidle_haltpoll.h [new file with mode: 0644]
arch/x86/kernel/kvm.c
drivers/cpuidle/cpuidle-haltpoll.c
include/linux/cpuidle_haltpoll.h [new file with mode: 0644]