Skip to content

Commit 6f627b4

Browse files
codomaniabonzini
authored andcommitted
KVM: SVM: Add module parameter to enable SEV-SNP
Add a module parameter than can be used to enable or disable the SEV-SNP feature. Now that KVM contains the support for the SNP set the GHCB hypervisor feature flag to indicate that SNP is supported. Signed-off-by: Brijesh Singh <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Signed-off-by: Ashish Kalra <[email protected]> Message-ID: <[email protected]> Signed-off-by: Michael Roth <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent ea262f8 commit 6f627b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/kvm/svm/sev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ static bool sev_es_enabled = true;
4949
module_param_named(sev_es, sev_es_enabled, bool, 0444);
5050

5151
/* enable/disable SEV-SNP support */
52-
static bool sev_snp_enabled;
52+
static bool sev_snp_enabled = true;
53+
module_param_named(sev_snp, sev_snp_enabled, bool, 0444);
5354

5455
/* enable/disable SEV-ES DebugSwap support */
5556
static bool sev_es_debug_swap_enabled = true;

0 commit comments

Comments
 (0)