lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240227194556.GEZd479Ek_lSfMf30b@fat_crate.local>
Date: Tue, 27 Feb 2024 20:45:56 +0100
From: Borislav Petkov <bp@...en8.de>
To: John Allen <john.allen@....com>
Cc: kvm@...r.kernel.org, weijiang.yang@...el.com,
	rick.p.edgecombe@...el.com, seanjc@...gle.com,
	thomas.lendacky@....com, pbonzini@...hat.com, mlevitsk@...hat.com,
	linux-kernel@...r.kernel.org, x86@...nel.org
Subject: Re: [PATCH v2 1/9] x86/boot: Move boot_*msr helpers to
 asm/shared/msr.h

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@....com>
> ---
> 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@...en8.de>

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ