mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
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
This commit is contained in:
committed by
Borislav Petkov
parent
bcce829083
commit
f742b90e61
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user