Page MenuHomeFreeBSD

x86: add a safe variant of MSR_OP_SCHED* operations
Needs ReviewPublic

Authored by kib on Mon, Feb 2, 12:01 AM.
Tags
None
Referenced Files
F144050514: D55045.diff
Tue, Feb 3, 10:48 PM
Unknown Object (File)
Tue, Feb 3, 2:37 AM
Unknown Object (File)
Mon, Feb 2, 10:55 PM
Unknown Object (File)
Mon, Feb 2, 4:46 PM
Unknown Object (File)
Mon, Feb 2, 11:59 AM
Unknown Object (File)
Mon, Feb 2, 8:32 AM
Unknown Object (File)
Mon, Feb 2, 8:31 AM
Unknown Object (File)
Mon, Feb 2, 12:32 AM
Subscribers

Details

Reviewers
markj
olce
Summary
The modifier executes the operation using msr{read,write}_safe()
functions instead of plain msr reads and writes.  Returns EFAULT if any
MSR access caused #GP.

x86_msr_op(9): consistently return the value read from MSR

x86_msr_op_one((9): execute SCHED ops in critical section

x86: provide extended description for x86_msr_op(9)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib edited the summary of this revision. (Show Details)
kib added reviewers: markj, olce.

finalize the change

Minor clarifications to the description.

I do not think that converting the comment into a man page is warranted.

Execute SCHED ops in critical section

kib edited the summary of this revision. (Show Details)

Fix locking error with sched_bind()