]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/hyperv: Check frequency MSRs presence according to the specification
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 22 Jun 2017 10:07:29 +0000 (18:07 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jun 2017 13:35:11 +0000 (15:35 +0200)
commit2cf0284223a40773bd0ec76a409a7cbf0607ca28
tree961b55181976fe552e2011aa0534df5f8cd015b6
parent48b6bbef9a1789f0365c1a385879a1fea4460016
x86/hyperv: Check frequency MSRs presence according to the specification

Hyper-V TLFS specifies two bits which should be checked before accessing
frequency MSRs:

- AccessFrequencyMsrs (BIT(11) in EAX) which indicates if we have access to
  frequency MSRs.
- FrequencyMsrsAvailable (BIT(8) in EDX) which indicates is these MSRs are
  present.

Rename and specify these bits accordingly.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Ladi Prosek <lprosek@redhat.com>
Cc: Jork Loeser <jloeser@microsoft.com>
Cc: devel@linuxdriverproject.org
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Link: http://lkml.kernel.org/r/20170622100730.18112-2-vkuznets@redhat.com
arch/x86/include/uapi/asm/hyperv.h
arch/x86/kernel/cpu/mshyperv.c