Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1519445

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

From Kyle Huey <me@kylehuey.com>
Newsgroups linux.kernel
Subject Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID
Date 2016-11-11 00:40 +0100
Message-ID <sC76N-4It-9@gated-at.bofh.it> (permalink)
References <sBjD3-4ES-11@gated-at.bofh.it> <sBjD3-4ES-15@gated-at.bofh.it> <sBl29-5Nj-7@gated-at.bofh.it> <sBB6V-7PV-13@gated-at.bofh.it> <sBBgB-7T9-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID Kyle Huey <me@kylehuey.com> - 2016-11-08 19:50 +0100
  Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID Thomas Gleixner <tglx@linutronix.de> - 2016-11-08 21:20 +0100
    Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID Borislav Petkov <bp@suse.de> - 2016-11-09 14:30 +0100
      Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID Thomas Gleixner <tglx@linutronix.de> - 2016-11-09 14:40 +0100
        Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID Kyle Huey <me@kylehuey.com> - 2016-11-11 00:40 +0100
      Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID Kyle Huey <me@kylehuey.com> - 2016-11-11 00:30 +0100
  Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID Borislav Petkov <bp@suse.de> - 2016-11-09 14:20 +0100

csiph-web