]> git.baikalelectronics.ru Git - kernel.git/commit
x86/hyperv: add comment describing TSC_INVARIANT_CONTROL MSR setting bit 0
authorAni Sinha <ani@anisinha.ca>
Fri, 16 Jul 2021 13:32:45 +0000 (19:02 +0530)
committerWei Liu <wei.liu@kernel.org>
Fri, 16 Jul 2021 14:51:54 +0000 (14:51 +0000)
commita0d5385302c46356a1b164a2927af8cc2514b46b
tree08866e267c0194be2644bc6c63d12a3721cb7eb3
parentc7fc68d6a4b510c5c8638dfd758ac9916c969590
x86/hyperv: add comment describing TSC_INVARIANT_CONTROL MSR setting bit 0

Commit 5a2ee33b12a0e ("x86/hyperv: Allow guests to enable InvariantTSC")
added the support for HV_X64_MSR_TSC_INVARIANT_CONTROL. Setting bit 0
of this synthetic MSR will allow hyper-v guests to report invariant TSC
CPU feature through CPUID. This comment adds this explanation to the code
and mentions where the Intel's generic platform init code reads this
feature bit from CPUID. The comment will help developers understand how
the two parts of the initialization (hyperV specific and non-hyperV
specific generic hw init) are related.

Signed-off-by: Ani Sinha <ani@anisinha.ca>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20210716133245.3272672-1-ani@anisinha.ca
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/kernel/cpu/mshyperv.c