Skip to content

Commit 0563ee3

Browse files
nikunjadbp3tk0v
authored andcommitted
x86/sev: Add the Secure TSC feature for SNP guests
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 <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Tom Lendacky <[email protected]> Tested-by: Peter Gonda <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 73bbf3b commit 0563ee3

File tree

1 file changed

+2
-1
lines changed
  • arch/x86/boot/compressed

1 file changed

+2
-1
lines changed

arch/x86/boot/compressed/sev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ void do_boot_stage2_vc(struct pt_regs *regs, unsigned long exit_code)
401401
* by the guest kernel. As and when a new feature is implemented in the
402402
* guest kernel, a corresponding bit should be added to the mask.
403403
*/
404-
#define SNP_FEATURES_PRESENT MSR_AMD64_SNP_DEBUG_SWAP
404+
#define SNP_FEATURES_PRESENT (MSR_AMD64_SNP_DEBUG_SWAP | \
405+
MSR_AMD64_SNP_SECURE_TSC)
405406

406407
u64 snp_get_unsupported_features(u64 status)
407408
{

0 commit comments

Comments
 (0)