KVM: SVM: Add module parameter to enable SEV-SNP
authorBrijesh Singh <brijesh.singh@amd.com>
Wed, 1 May 2024 08:52:07 +0000 (03:52 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 12 May 2024 08:09:34 +0000 (04:09 -0400)
commit6f627b425378915b6eda30908bedefc21b70b8c4
treeaf9a1283f559d2db04a38f526ac7c0a50aa4bd23
parentea262f8a7c360e71f3cb6c2151fd9bfcefd090e9
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>
arch/x86/kvm/svm/sev.c