Messages in this thread | | | From | Kyle Huey <> | Date | Thu, 10 Nov 2016 15:38:41 -0800 | Subject | Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID |
| |
On Wed, Nov 9, 2016 at 5:34 AM, Thomas Gleixner <tglx@linutronix.de> wrote: > On Wed, 9 Nov 2016, Borislav Petkov wrote: >> +static void init_misc_enables(struct cpuinfo_x86 *c) >> +{ >> + u64 val, misc_en; >> + >> + if (rdmsrl_safe(MSR_MISC_FEATURES_ENABLES, &misc_en)) >> + return; >> + >> + misc_en &= ~MSR_MISC_ENABLES_CPUID_FAULT_ENABLE; > > I rather prefer to write this MSR to 0 right away and just enable the bits > which we really support.
I've gone ahead and done this.
- Kyle
| |