lkml.org 
[lkml]   [2020]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] x86/MSR: Add a MSR write callback
Date
From: Borislav Petkov <bp@suse.de>

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

\
 
 \ /
  Last update: 2020-06-10 13:01    [W:0.099 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site