diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0066-KVM-X86-Add-CONFIG_KVM_AMD_SEV.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0066-KVM-X86-Add-CONFIG_KVM_AMD_SEV.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0066-KVM-X86-Add-CONFIG_KVM_AMD_SEV.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0066-KVM-X86-Add-CONFIG_KVM_AMD_SEV.patch new file mode 100644 index 00000000..cbc2d8c8 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0066-KVM-X86-Add-CONFIG_KVM_AMD_SEV.patch @@ -0,0 +1,52 @@ +From 2ba55248ca7e3996b5c3758ae7f56b396bca7b49 Mon Sep 17 00:00:00 2001 +From: Brijesh Singh <brijesh.singh@amd.com> +Date: Mon, 4 Dec 2017 10:57:32 -0600 +Subject: [PATCH 66/95] KVM: X86: Add CONFIG_KVM_AMD_SEV +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The config option can be used to enable SEV support on AMD Processors. + +Cc: Thomas Gleixner <tglx@linutronix.de> +Cc: Ingo Molnar <mingo@redhat.com> +Cc: "H. Peter Anvin" <hpa@zytor.com> +Cc: Paolo Bonzini <pbonzini@redhat.com> +Cc: "Radim Krčmář" <rkrcmar@redhat.com> +Cc: Joerg Roedel <joro@8bytes.org> +Cc: Borislav Petkov <bp@suse.de> +Cc: Tom Lendacky <thomas.lendacky@amd.com> +Cc: x86@kernel.org +Cc: kvm@vger.kernel.org +Cc: linux-kernel@vger.kernel.org +Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> +Reviewed-by: Borislav Petkov <bp@suse.de> +Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com> +--- + arch/x86/kvm/Kconfig | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig +index 3df51c2..148ea32 100644 +--- a/arch/x86/kvm/Kconfig ++++ b/arch/x86/kvm/Kconfig +@@ -81,6 +81,16 @@ config KVM_AMD + To compile this as a module, choose M here: the module + will be called kvm-amd. + ++config KVM_AMD_SEV ++ def_bool y ++ bool "AMD Secure Encrypted Virtualization (SEV) support" ++ depends on KVM_AMD && X86_64 ++ select CRYPTO_DEV_CCP ++ select CRYPTO_DEV_CCP_DD ++ select CRYPTO_DEV_SP_PSP ++ ---help--- ++ Provides support for launching Encrypted VMs on AMD processors. ++ + config KVM_MMU_AUDIT + bool "Audit KVM MMU" + depends on KVM && TRACEPOINTS +-- +2.7.4 + |