KVM: SVM: Add support for KVM_SEV_LAUNCH_START command
authorBrijesh Singh <brijesh.singh@amd.com>
Mon, 4 Dec 2017 16:57:35 +0000 (10:57 -0600)
committerBrijesh Singh <brijesh.singh@amd.com>
Mon, 4 Dec 2017 19:33:10 +0000 (13:33 -0600)
commit59414c989220825f970f38dbcbf11f18e817d73c
treecf73d3adc84e30b721fe17db8ba5b38477b7ea29
parent70cd94e60c733e3afc18b0e6aab789c13b5571da
KVM: SVM: Add support for KVM_SEV_LAUNCH_START command

The KVM_SEV_LAUNCH_START command is used to create a memory encryption
context within the SEV firmware. In order to do so, the guest owner
should provide the guest's policy, its public Diffie-Hellman (PDH) key
and session information. The command implements the LAUNCH_START flow
defined in SEV spec Section 6.2.

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
Improvements-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c