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

[kernel][x86] Introduce write_msr_on_cpu

write_msr_on_cpu is a helper to write a value to an MSR on a particular
CPU. The write must not cause a #GP fault as it is executed from a
context that handles IPI functions.

Tested:
1) See succesor CR which adds k cpu rdmsr/wrmsr commands.

2) Unit tests (x64_platform_tests) on qemu tcg, qemu kvm x64.

ZX-3359

Change-Id: I700a1997d47494904eda823f611eec253b8dace3
parent 0a21e8fa
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