Skip to contentSkip to conversation

x86/coco: Update comment of CC_ATTR_GUEST_MEM_ENCRYPT to include TDX guest

PATCH In review Kai Huang 2 participants 3 messages Mar 19, 2024 – Mar 20, 2024

lore
Share & tools
lore

Kai Huang

author
#0 lore raw

PATCH 1/1 x86/coco: Update comment of CC_ATTR_GUEST_MEM_ENCRYPT to include TDX guest

TDX guest also reports CC_ATTR_GUEST_STATE_ENCRYPT as true, but the comment of this attribute does not reflect this.

Update the comment to reflect the fact.

---
 include/linux/cc_platform.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/cc_platform.h +1 -1
index cb0d6cd1c12f..958630592088 100644
@@ -48,7 +48,7 @@ enum cc_attr {
 	 * The platform/OS is running as a guest/virtual machine and actively
 	 * using memory encryption.
 	 *
-	 * Examples include SEV and SEV-ES.
+	 * Examples include SEV, SEV-ES and TDX guests.
 	 */
 	CC_ATTR_GUEST_MEM_ENCRYPT,
 

base-commit: eb8ed5b0e9d988a75b10ea811eeb1cffc6aa95c0

Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Kai Huang

TDX guest also reports CC_ATTR_GUEST_STATE_ENCRYPT as true, but the comment of this attribute does not reflect this.

Update the comment to reflect the fact.

Alternatively, we can just drop all these "Examples include ...". The same info can easily can be derived from code.

Signature · 1 line
  Kiryl Shutsemau / Kirill A. Shutemov
author
#2 lore raw
Quoted 9 lines · Kirill A. Shutemov
Quoted 6 lines · Kai Huang

TDX guest also reports CC_ATTR_GUEST_STATE_ENCRYPT as true, but the comment of this attribute does not reflect this.

Update the comment to reflect the fact.

Thanks.

Quoted 4 lines

Alternatively, we can just drop all these "Examples include ...". The same info can easily can be derived from code.

Both work for me.