Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID

From: Kyle Huey
Date: Thu Nov 10 2016 - 18:38:50 EST


On Wed, Nov 9, 2016 at 5:34 AM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> 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