]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
x86/sev: Add the Secure TSC feature for SNP guests
authorNikunj A Dadhania <nikunj@amd.com>
Mon, 6 Jan 2025 12:46:33 +0000 (18:16 +0530)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 9 Jan 2025 09:21:56 +0000 (10:21 +0100)
Now that all the required plumbing is done for enabling Secure TSC, add it to
the SNP features present list.

Signed-off-by: Nikunj A Dadhania <nikunj@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Tested-by: Peter Gonda <pgonda@google.com>
Link: https://lore.kernel.org/r/20250106124633.1418972-14-nikunj@amd.com
arch/x86/boot/compressed/sev.c

index cd44e120fe53777e3daff67e8a5f67bcd59fb067..bb55934c1cee7053726629e90e82b5b5b5825d21 100644 (file)
@@ -401,7 +401,8 @@ finish:
  * by the guest kernel. As and when a new feature is implemented in the
  * guest kernel, a corresponding bit should be added to the mask.
  */
-#define SNP_FEATURES_PRESENT   MSR_AMD64_SNP_DEBUG_SWAP
+#define SNP_FEATURES_PRESENT   (MSR_AMD64_SNP_DEBUG_SWAP |     \
+                                MSR_AMD64_SNP_SECURE_TSC)
 
 u64 snp_get_unsupported_features(u64 status)
 {