Thread (183 messages) 183 messages, 11 authors, 2022-01-29

Re: [PATCH v8 03/40] x86/mm: Extend cc_attr to include AMD SEV-SNP

From: Borislav Petkov <bp@alien8.de>
Date: 2021-12-14 15:53:53
Also in: kvm, linux-coco, lkml, platform-driver-x86

On Fri, Dec 10, 2021 at 09:42:55AM -0600, Brijesh Singh wrote:
quoted hunk ↗ jump to hunk
diff --git a/include/linux/cc_platform.h b/include/linux/cc_platform.h
index a075b70b9a70..ef5e2209c9b8 100644
--- a/include/linux/cc_platform.h
+++ b/include/linux/cc_platform.h
@@ -61,6 +61,14 @@ enum cc_attr {
 	 * Examples include SEV-ES.
 	 */
 	CC_ATTR_GUEST_STATE_ENCRYPT,
+
+	/**
+	 * @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_SEV_SNP = 0x100,
I guess CC_ATTR_GUEST_SEV_SNP. The Intel is called CC_ATTR_GUEST_TDX so
at least they all say it is a guest thing, this way.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help