Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1671033
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] hyper-v: check frequency MSRs presence according to the specification |
| Date | 2017-06-20 21:30 +0200 |
| Message-ID | <tUx0C-4hm-7@gated-at.bofh.it> (permalink) |
| References | <tTUBY-4Zs-3@gated-at.bofh.it> <tTUBY-4Zs-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 19 Jun 2017, Vitaly Kuznetsov wrote:
> +#define HV_X64_ACCESS_FREQUENCY_MSRS (1 << 11)
>
> /*
> * Basic SynIC MSRs (HV_X64_MSR_SCONTROL through HV_X64_MSR_EOM
> @@ -73,6 +67,9 @@
> */
> #define HV_X64_MSR_STAT_PAGES_AVAILABLE (1 << 8)
>
> +/* Frequency MSRs available */
> +#define HV_FEATURE_FREQUENCY_MSRS_AVAILABELE (1 << 8)
s/AVAILABELE/AVAILABLE/ please
> +
> /* Crash MSR available */
> #define HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE (1 << 10)
>
> diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c
> index 04cb8d3..250f432 100644
> --- a/arch/x86/kernel/cpu/mshyperv.c
> +++ b/arch/x86/kernel/cpu/mshyperv.c
> @@ -194,7 +194,8 @@ static void __init ms_hyperv_init_platform(void)
> }
>
> #ifdef CONFIG_X86_LOCAL_APIC
> - if (ms_hyperv.features & HV_X64_MSR_APIC_FREQUENCY_AVAILABLE) {
> + if (ms_hyperv.features & HV_X64_ACCESS_FREQUENCY_MSRS &&
> + ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABELE) {
> /*
> * Get the APIC frequency.
> */
> --
> 2.9.4
>
>
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH 1/2] hyper-v: check frequency MSRs presence according to the specification Thomas Gleixner <tglx@linutronix.de> - 2017-06-20 21:30 +0200
csiph-web