[PATCH v13 2/3] x86/mm: refactor __set_clr_pte_enc()
Tom Lendacky
thomas.lendacky at amd.com
Mon Oct 28 09:15:42 PDT 2024
On 8/1/24 14:14, Ashish Kalra wrote:
> From: Ashish Kalra <ashish.kalra at amd.com>
>
> Refactor __set_clr_pte_enc() and add two new helper functions to
> set/clear PTE C-bit from early SEV/SNP initialization code and
> later during shutdown/kexec especially when all CPUs are stopped
> and interrupts are disabled and set_memory_xx() interfaces can't
> be used.
>
> Co-developed-by: Borislav Petkov (AMD) <bp at alien8.de>
> Signed-off-by: Borislav Petkov (AMD) <bp at alien8.de>
> Signed-off-by: Ashish Kalra <ashish.kalra at amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky at amd.com>
> ---
> arch/x86/include/asm/sev.h | 20 ++++++++++
> arch/x86/mm/mem_encrypt_amd.c | 75 +++++++++++++++++++++++------------
> 2 files changed, 69 insertions(+), 26 deletions(-)
>
More information about the kexec
mailing list