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 <brijesh.singh@amd.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Ashish Kalra <ashish.kalra@amd.com> Message-ID: <20240501085210.2213060-18-michael.roth@amd.com> Signed-off-by: Michael Roth <michael.roth@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent ea262f8 commit 6f627b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)