x86/paravirt: Allow hypervisor-specific VMMCALL handling under SEV-ES
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:16:03 +0000 (15:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 9 Sep 2020 09:33:20 +0000 (11:33 +0200)
commitf6a9f8a45810d2914ea422ff39bfe2e0251c50f2
tree141b59c25ec93568fa68c40688518ffac6fbb7f2
parentcb1ad3ecea959593400dfac4f027dbc005e62c39
x86/paravirt: Allow hypervisor-specific VMMCALL handling under SEV-ES

Add two new paravirt callbacks to provide hypervisor-specific processor
state in the GHCB and to copy state from the hypervisor back to the
processor.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-63-joro@8bytes.org
arch/x86/include/asm/x86_init.h
arch/x86/kernel/sev-es.c