On 8/1/24 14:14, Ashish Kalra wrote: > From: Ashish Kalra <ashish.kalra@xxxxxxx> > > 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@xxxxxxxxx> > Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx> > Signed-off-by: Ashish Kalra <ashish.kalra@xxxxxxx> Reviewed-by: Tom Lendacky <thomas.lendacky@xxxxxxx> > --- > arch/x86/include/asm/sev.h | 20 ++++++++++ > arch/x86/mm/mem_encrypt_amd.c | 75 +++++++++++++++++++++++------------ > 2 files changed, 69 insertions(+), 26 deletions(-) > _______________________________________________ kexec mailing list kexec@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/kexec