x86/mm: Extend cc_attr to include AMD SEV-SNP
authorBrijesh Singh <brijesh.singh@amd.com>
Thu, 24 Feb 2022 16:55:49 +0000 (10:55 -0600)
committerBorislav Petkov <bp@suse.de>
Wed, 6 Apr 2022 11:02:34 +0000 (13:02 +0200)
commitf742b90e61bb53b27771f64bdae05db03a6ab1f2
tree67e176343fb8dc60a5e69746f2b4e2c15fbb7056
parentbcce829083339bf862d66df602cbb111943da8fb
x86/mm: Extend cc_attr to include AMD SEV-SNP

The CC_ATTR_GUEST_SEV_SNP 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>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220307213356.2797205-10-brijesh.singh@amd.com
arch/x86/coco/core.c
arch/x86/include/asm/msr-index.h
arch/x86/mm/mem_encrypt.c
include/linux/cc_platform.h