diff options
Diffstat (limited to 'include/linux/cc_platform.h')
-rw-r--r-- | include/linux/cc_platform.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/include/linux/cc_platform.h b/include/linux/cc_platform.h index cb0d6cd1c12f..0bf7d33a1048 100644 --- a/include/linux/cc_platform.h +++ b/include/linux/cc_platform.h @@ -82,14 +82,20 @@ enum cc_attr { CC_ATTR_GUEST_SEV_SNP, /** - * @CC_ATTR_HOTPLUG_DISABLED: Hotplug is not supported or disabled. + * @CC_ATTR_GUEST_SNP_SECURE_TSC: SNP Secure TSC is active. * - * The platform/OS is running as a guest/virtual machine does not - * support CPU hotplug feature. + * The platform/OS is running as a guest/virtual machine and actively + * using AMD SEV-SNP Secure TSC feature. + */ + CC_ATTR_GUEST_SNP_SECURE_TSC, + + /** + * @CC_ATTR_HOST_SEV_SNP: AMD SNP enabled on the host. * - * Examples include TDX Guest. + * The host kernel is running with the necessary features + * enabled to run SEV-SNP guests. */ - CC_ATTR_HOTPLUG_DISABLED, + CC_ATTR_HOST_SEV_SNP, }; #ifdef CONFIG_ARCH_HAS_CC_PLATFORM @@ -107,10 +113,14 @@ enum cc_attr { * * FALSE - Specified Confidential Computing attribute is not active */ bool cc_platform_has(enum cc_attr attr); +void cc_platform_set(enum cc_attr attr); +void cc_platform_clear(enum cc_attr attr); #else /* !CONFIG_ARCH_HAS_CC_PLATFORM */ static inline bool cc_platform_has(enum cc_attr attr) { return false; } +static inline void cc_platform_set(enum cc_attr attr) { } +static inline void cc_platform_clear(enum cc_attr attr) { } #endif /* CONFIG_ARCH_HAS_CC_PLATFORM */ |