diff options
Diffstat (limited to 'arch/x86/include/uapi/asm/hyperv.h')
-rw-r--r-- | arch/x86/include/uapi/asm/hyperv.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/x86/include/uapi/asm/hyperv.h b/arch/x86/include/uapi/asm/hyperv.h index b80420bcd09d..b8f1c0176cbc 100644 --- a/arch/x86/include/uapi/asm/hyperv.h +++ b/arch/x86/include/uapi/asm/hyperv.h | |||
@@ -27,6 +27,19 @@ | |||
27 | #define HV_X64_MSR_VP_RUNTIME_AVAILABLE (1 << 0) | 27 | #define HV_X64_MSR_VP_RUNTIME_AVAILABLE (1 << 0) |
28 | /* Partition Reference Counter (HV_X64_MSR_TIME_REF_COUNT) available*/ | 28 | /* Partition Reference Counter (HV_X64_MSR_TIME_REF_COUNT) available*/ |
29 | #define HV_X64_MSR_TIME_REF_COUNT_AVAILABLE (1 << 1) | 29 | #define HV_X64_MSR_TIME_REF_COUNT_AVAILABLE (1 << 1) |
30 | |||
31 | /* | ||
32 | * There is a single feature flag that signifies the presence of the MSR | ||
33 | * that can be used to retrieve both the local APIC Timer frequency as | ||
34 | * well as the TSC frequency. | ||
35 | */ | ||
36 | |||
37 | /* Local APIC timer frequency MSR (HV_X64_MSR_APIC_FREQUENCY) is available */ | ||
38 | #define HV_X64_MSR_APIC_FREQUENCY_AVAILABLE (1 << 11) | ||
39 | |||
40 | /* TSC frequency MSR (HV_X64_MSR_TSC_FREQUENCY) is available */ | ||
41 | #define HV_X64_MSR_TSC_FREQUENCY_AVAILABLE (1 << 11) | ||
42 | |||
30 | /* | 43 | /* |
31 | * Basic SynIC MSRs (HV_X64_MSR_SCONTROL through HV_X64_MSR_EOM | 44 | * Basic SynIC MSRs (HV_X64_MSR_SCONTROL through HV_X64_MSR_EOM |
32 | * and HV_X64_MSR_SINT0 through HV_X64_MSR_SINT15) available | 45 | * and HV_X64_MSR_SINT0 through HV_X64_MSR_SINT15) available |
@@ -136,6 +149,12 @@ | |||
136 | /* MSR used to read the per-partition time reference counter */ | 149 | /* MSR used to read the per-partition time reference counter */ |
137 | #define HV_X64_MSR_TIME_REF_COUNT 0x40000020 | 150 | #define HV_X64_MSR_TIME_REF_COUNT 0x40000020 |
138 | 151 | ||
152 | /* MSR used to retrieve the TSC frequency */ | ||
153 | #define HV_X64_MSR_TSC_FREQUENCY 0x40000022 | ||
154 | |||
155 | /* MSR used to retrieve the local APIC timer frequency */ | ||
156 | #define HV_X64_MSR_APIC_FREQUENCY 0x40000023 | ||
157 | |||
139 | /* Define the virtual APIC registers */ | 158 | /* Define the virtual APIC registers */ |
140 | #define HV_X64_MSR_EOI 0x40000070 | 159 | #define HV_X64_MSR_EOI 0x40000070 |
141 | #define HV_X64_MSR_ICR 0x40000071 | 160 | #define HV_X64_MSR_ICR 0x40000071 |