KVM: SVM: Add GHCB definitions
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 7 Sep 2020 13:15:03 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 7 Sep 2020 17:45:24 +0000 (19:45 +0200)
commitd07f46f9f51afc7fc9f021eae19eba3c2e7870ac
treebc7368d42076932483ae16ef685e58b83ce359f7
parent6ccbd29ade0d159ee1be398dc9defaae567c253d
KVM: SVM: Add GHCB definitions

Extend the vmcb_safe_area with SEV-ES fields and add a new
'struct ghcb' which will be used for guest-hypervisor communication.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-3-joro@8bytes.org
arch/x86/include/asm/svm.h
arch/x86/kvm/svm/svm.c