Re: [RFC PATCH v4 07/28] x86: Provide general kernel support for memory encryption
From: Borislav Petkov
Date: Wed Feb 22 2017 - 07:09:38 EST
On Tue, Feb 21, 2017 at 11:18:08AM -0600, Tom Lendacky wrote:
> It's the latter. It's really only used for working with values that
> will either be written to or read from cr3. I'll add some comments
> around the macros as well as expand on it in the commit message.
Ok, that makes sense. Normally we will have the mask in the lower levels
of the pagetable hierarchy but we need to add it to the CR3 value by
hand. Yap.
> Ok, I'll try and come up with something... maybe __sme_rm or
> __sme_clear (__sme_clr).
__sme_clr looks nice to me :)
Thanks.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.