Re: [PATCH v6 13/34] x86/mm: Add support for early encrypt/decrypt of memory

From: Borislav Petkov
Date: Sat Jun 10 2017 - 11:56:53 EST


On Wed, Jun 07, 2017 at 02:15:27PM -0500, Tom Lendacky wrote:
> Add support to be able to either encrypt or decrypt data in place during
> the early stages of booting the kernel. This does not change the memory
> encryption attribute - it is used for ensuring that data present in either
> an encrypted or decrypted memory area is in the proper state (for example
> the initrd will have been loaded by the boot loader and will not be
> encrypted, but the memory that it resides in is marked as encrypted).
>
> Signed-off-by: Tom Lendacky <thomas.lendacky@xxxxxxx>
> ---
> arch/x86/include/asm/mem_encrypt.h | 15 +++++++
> arch/x86/mm/mem_encrypt.c | 76 ++++++++++++++++++++++++++++++++++++
> 2 files changed, 91 insertions(+)

Patches 11-13:

Reviewed-by: Borislav Petkov <bp@xxxxxxx>

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.