On Mon, Feb 26, 2024 at 09:32:36PM +0000, John Allen wrote: > The boot_rdmsr and boot_wrmsr helpers used to reduce the need for inline > assembly in the boot kernel can also be useful in code shared by boot > and run-time kernel code. Move these helpers to asm/shared/msr.h and > rename to raw_rdmsr and raw_wrmsr to indicate that these may also be > used outside of the boot kernel. > > Signed-off-by: John Allen <john.allen@xxxxxxx> > --- > v2: > - New in v2 > --- > arch/x86/boot/compressed/sev.c | 10 +++++----- > arch/x86/boot/cpucheck.c | 16 ++++++++-------- > arch/x86/boot/msr.h | 26 -------------------------- > arch/x86/include/asm/shared/msr.h | 15 +++++++++++++++ > 4 files changed, 28 insertions(+), 39 deletions(-) > delete mode 100644 arch/x86/boot/msr.h Acked-by: Borislav Petkov (AMD) <bp@xxxxxxxxx> -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette