Skip to content

Commit c3b86e6

Browse files
mdrothbp3tk0v
authored andcommitted
x86/cpufeatures: Enable/unmask SEV-SNP CPU feature
With all the required host changes in place, it should now be possible to initialize SNP-related MSR bits, set up RMP table enforcement, and initialize SNP support in firmware while maintaining legacy support for SEV/SEV-ES guests. Go ahead and enable the SNP feature now. Signed-off-by: Michael Roth <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 75253db commit c3b86e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/x86/include/asm/disabled-features.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@
117117
#define DISABLE_IBT (1 << (X86_FEATURE_IBT & 31))
118118
#endif
119119

120+
#ifdef CONFIG_KVM_AMD_SEV
121+
#define DISABLE_SEV_SNP 0
122+
#else
120123
#define DISABLE_SEV_SNP (1 << (X86_FEATURE_SEV_SNP & 31))
124+
#endif
121125

122126
/*
123127
* Make sure to add features to the correct mask

0 commit comments

Comments
 (0)