[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
Showing
- zircon/kernel/arch/x86/include/arch/x86.h 3 additions, 0 deletionszircon/kernel/arch/x86/include/arch/x86.h
- zircon/kernel/arch/x86/msr.cpp 21 additions, 0 deletionszircon/kernel/arch/x86/msr.cpp
- zircon/kernel/tests/BUILD.gn 1 addition, 0 deletionszircon/kernel/tests/BUILD.gn
- zircon/kernel/tests/x64_platform_tests.cpp 64 additions, 0 deletionszircon/kernel/tests/x64_platform_tests.cpp
Loading
Please register or sign in to comment