x86/hyperv: Add GUEST_IDLE_MSR support
authorYi Sun <yi.y.sun@linux.intel.com>
Thu, 27 Sep 2018 06:01:43 +0000 (14:01 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Oct 2018 12:14:49 +0000 (14:14 +0200)
commitf726c4620df39055f060537a8ed183c18a2c504b
tree7d46374d68e0af72eca35677dda816124578d754
parent3637897b6c9bc2f12f38956d64724a6d0bbb56fd
x86/hyperv: Add GUEST_IDLE_MSR support

Hyper-V may expose a HV_X64_MSR_GUEST_IDLE MSR via HYPERV_CPUID_FEATURES.

Reading this MSR triggers the host to transition the guest vCPU into an
idle state. This state can be exited via an IPI even if the read in the
guest happened from an interrupt disabled section.

Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Cc: chao.p.peng@intel.com
Cc: chao.gao@intel.com
Cc: isaku.yamahata@intel.com
Cc: tianyu.lan@microsoft.com
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Link: https://lkml.kernel.org/r/1538028104-114050-2-git-send-email-yi.y.sun@linux.intel.com
arch/x86/include/asm/hyperv-tlfs.h