diff options
author | Brijesh Singh <brijesh.singh@amd.com> | 2022-02-24 19:55:49 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-04-06 14:02:34 +0300 |
commit | f742b90e61bb53b27771f64bdae05db03a6ab1f2 (patch) | |
tree | 67e176343fb8dc60a5e69746f2b4e2c15fbb7056 /include/linux/cc_platform.h | |
parent | bcce829083339bf862d66df602cbb111943da8fb (diff) | |
download | linux-f742b90e61bb53b27771f64bdae05db03a6ab1f2.tar.xz |
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
Diffstat (limited to 'include/linux/cc_platform.h')
-rw-r--r-- | include/linux/cc_platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/cc_platform.h b/include/linux/cc_platform.h index efd8205282da..d08dd65b5c43 100644 --- a/include/linux/cc_platform.h +++ b/include/linux/cc_platform.h @@ -72,6 +72,14 @@ enum cc_attr { * Examples include TDX guest & SEV. */ CC_ATTR_GUEST_UNROLL_STRING_IO, + + /** + * @CC_ATTR_SEV_SNP: Guest SNP is active. + * + * The platform/OS is running as a guest/virtual machine and actively + * using AMD SEV-SNP features. + */ + CC_ATTR_GUEST_SEV_SNP, }; #ifdef CONFIG_ARCH_HAS_CC_PLATFORM |