linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kyle Huey <me@kylehuey.com>
To: Borislav Petkov <bp@suse.de>
Cc: "Robert O'Callahan" <robert@ocallahan.org>,
	linux-api@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)"
	<x86@kernel.org>, "Peter Zijlstra (Intel)" <peterz@infradead.org>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	Len Brown <len.brown@intel.com>,
	Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	Huang Rui <ray.huang@amd.com>,
	Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>,
	Andy Lutomirski <luto@kernel.org>,
	Juergen Gross <jgross@suse.com>,
	Fenghua Yu <fenghua.yu@intel.com>,
	"Luis R. Rodriguez" <mcgrof@kernel.org>,
	Denys Vlasenko <dvlasenk@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Kees Cook <keescook@chromium.org>,
	Dmitry Vyukov <dvyukov@google.com>,
	Paul Gortmaker <paul.gortmaker@windriver.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Andrey Ryabinin <aryabinin@virtuozzo.com>,
	Jiri Slaby <jslaby@suse.cz>, Michal Hocko <mhocko@suse.com>,
	Alex Thorlton <athorlton@sgi.com>,
	Vlastimil Babka <vbabka@suse.cz>,
	Mateusz Guzik <mguzik@redhat.com>,
	Ben Segall <bsegall@google.com>,
	John Stultz <john.stultz@linaro.org>,
	"open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" 
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] prctl,x86 Add PR_[GET|SET]_CPUID for controlling the CPUID instruction.
Date: Tue, 13 Sep 2016 11:42:33 -0700	[thread overview]
Message-ID: <CAP045AqzCq-3LOXjjFtRywT48-CmOYzhZwcY3XLOs8Z9cD2Gmg@mail.gmail.com> (raw)
In-Reply-To: <CAP045ArcuopWtoUTMFLW6zYse6OFX+SUDRqg=fn+Ty6vCPUJ8Q@mail.gmail.com>

On Mon, Sep 12, 2016 at 7:15 AM, Kyle Huey <me@kylehuey.com> wrote:
> On Mon, Sep 12, 2016 at 2:07 AM, Borislav Petkov <bp@suse.de> wrote:
>> On Sun, Sep 11, 2016 at 05:29:23PM -0700, Kyle Huey wrote:
>>> @@ -2162,6 +2168,12 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
>>>       case PR_SET_TSC:
>>>               error = SET_TSC_CTL(arg2);
>>>               break;
>>> +     case PR_GET_CPUID:
>>> +             error = GET_CPUID_CTL(arg2);
>>> +             break;
>>> +     case PR_SET_CPUID:
>>> +             error = SET_CPUID_CTL(arg2);
>>> +             break;
>>>       case PR_TASK_PERF_EVENTS_DISABLE:
>>>               error = perf_event_task_disable();
>>>               break;
>>
>> This whole fun should be in arch_prctl() as it is arch-specific.
>
> Yeah, I was debating about that, and did it this way because of
> PR_SET_TSC.  Will fix.

arch_prctl is not yet exposed on 32 bit x86, so we'll have to add that
as well to do this.

- Kyle

  parent reply	other threads:[~2016-09-13 18:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-12  0:29 [PATCH] prctl,x86 Add PR_[GET|SET]_CPUID for controlling the CPUID instruction Kyle Huey
2016-09-12  9:07 ` Borislav Petkov
2016-09-12 14:15   ` Kyle Huey
2016-09-12 14:34     ` Borislav Petkov
2016-09-13 18:42     ` Kyle Huey [this message]
2016-09-12 16:56 ` Andy Lutomirski
2016-09-12 17:18   ` Borislav Petkov
2016-09-12 17:56   ` Jann Horn
2016-09-12 21:07     ` Andy Lutomirski
2016-09-14  6:13   ` Kyle Huey
2016-09-14 18:52     ` Andy Lutomirski
2016-09-14 19:22       ` Andrew Cooper
2016-09-14 19:23       ` Boris Ostrovsky
2016-09-14 19:28         ` Andrew Cooper
2016-09-14 19:36           ` Andy Lutomirski
2016-09-14 19:42             ` Andrew Cooper
2016-09-12 17:37 ` Andi Kleen
2016-09-12 18:25   ` Henrique de Moraes Holschuh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP045AqzCq-3LOXjjFtRywT48-CmOYzhZwcY3XLOs8Z9cD2Gmg@mail.gmail.com \
    --to=me@kylehuey.com \
    --cc=Aravind.Gopalakrishnan@amd.com \
    --cc=akpm@linux-foundation.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=aryabinin@virtuozzo.com \
    --cc=athorlton@sgi.com \
    --cc=bp@suse.de \
    --cc=bsegall@google.com \
    --cc=dvlasenk@redhat.com \
    --cc=dvyukov@google.com \
    --cc=fenghua.yu@intel.com \
    --cc=hpa@zytor.com \
    --cc=jgross@suse.com \
    --cc=john.stultz@linaro.org \
    --cc=jslaby@suse.cz \
    --cc=keescook@chromium.org \
    --cc=len.brown@intel.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=mguzik@redhat.com \
    --cc=mhocko@suse.com \
    --cc=mingo@redhat.com \
    --cc=mst@redhat.com \
    --cc=paul.gortmaker@windriver.com \
    --cc=peterz@infradead.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=ray.huang@amd.com \
    --cc=robert@ocallahan.org \
    --cc=srinivas.pandruvada@linux.intel.com \
    --cc=tglx@linutronix.de \
    --cc=vbabka@suse.cz \
    --cc=vladimir_zapolskiy@mentor.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).