From: Ani Sinha <hidden> Date: 2021-07-16 13:33:06
Commit dce7cd62754b5 ("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 <redacted>
---
arch/x86/kernel/cpu/mshyperv.c | 9 +++++++++
1 file changed, 9 insertions(+)
changelog:
v1: initial patch
v2: slight comment update based on received feedback.
Commit dce7cd62754b5 ("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 <redacted>
---
arch/x86/kernel/cpu/mshyperv.c | 9 +++++++++
1 file changed, 9 insertions(+)
changelog:
v1: initial patch
v2: slight comment update based on received feedback.
From: Michael Kelley <hidden> Date: 2021-07-16 13:59:45
From: Ani Sinha <redacted> Sent: Friday, July 16, 2021 6:33 AM
quoted hunk
Commit dce7cd62754b5 ("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 <redacted>
---
arch/x86/kernel/cpu/mshyperv.c | 9 +++++++++
1 file changed, 9 insertions(+)
changelog:
v1: initial patch
v2: slight comment update based on received feedback.
From: Wei Liu <wei.liu@kernel.org> Date: 2021-07-16 14:53:15
On Fri, Jul 16, 2021 at 07:02:45PM +0530, Ani Sinha wrote:
Commit dce7cd62754b5 ("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 <redacted>