Skip to content
Snippets Groups Projects
Commit eafd9b14 authored by Venkatesh Srinivas's avatar Venkatesh Srinivas Committed by CQ bot account: commit-bot@chromium.org
Browse files

[kernel][x86] Add write_msr_safe

write_msr_safe attempts to write a value to an MSR; if it encounters a #GP
fault, it returns a status with the value unwritten.

Like read_msr_safe, this should be executed with interrupts disabled; I
plan to change both of them soon to assert that we are either cpu-pinned
or have hard interrupts disabled.

Tested: See 4th CL in stack; adds 'k' commands to access read_msr/write_msr.

ZX-3359

Change-Id: I6f91818bf1ffc34f54e041ad17aca1317d240321
parent bdd2d1c2
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment