[PATCH 0/3] x86/MSR: Add a MSR write callback

Borislav Petkov
2020-06-10T11:00:51Z

Hi all,

here's a small set which adds a callback to execute when a MSR is
written. Patch 3 explains the need for it.

Thx.

Borislav Petkov (3):
x86/msr: Pass a single MSR value to __rwmsr_on_cpus() too
x86/msr: Add wrmsrl_val_on_cpus()
x86/msr: Add an MSR write callback

arch/x86/include/asm/msr.h | 10 ++++++++++
arch/x86/kernel/cpu/bugs.c | 2 +-
arch/x86/kernel/cpu/common.c | 31 +++++++++++++++++++++++++++++++
arch/x86/kernel/msr.c | 3 +++
arch/x86/lib/msr-smp.c | 26 +++++++++++++++++++++++---
5 files changed, 68 insertions(+), 4 deletions(-)

--
2.21.0