Re: [PATCH Part1 RFC v4 04/36] x86/mm: Add sev_feature_enabled() helper

Borislav Petkov
2021-08-10T11:24:37Z

On Wed, Jul 07, 2021 at 01:14:34PM -0500, Brijesh Singh wrote:
> The sev_feature_enabled() helper can be used by the guest to query whether
> the SNP - Secure Nested Paging feature is active.
>
> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
> ---
> arch/x86/include/asm/mem_encrypt.h | 8 ++++++++
> arch/x86/include/asm/msr-index.h | 2 ++
> arch/x86/mm/mem_encrypt.c | 14 ++++++++++++++
> 3 files changed, 24 insertions(+)

This will get replaced by this I presume:

https://lkml.kernel.org/r/cover.1627424773.git.thomas.lendacky@amd.com

--
Regards/Gruss,
Boris.