x86/sev-es: Handle VMMCALL Events
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 7 Sep 2020 13:16:00 +0000 (15:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 9 Sep 2020 09:33:20 +0000 (11:33 +0200)
commit2eb7dcf0ccc40ad3f39b000becf16661abf98102
treea46a1929b4dd75e3e2a1ed835b2bd6832f73c0d1
parentded476bbe203e59cb571d6c576f680efe4a0ddff
x86/sev-es: Handle VMMCALL Events

Implement a handler for #VC exceptions caused by VMMCALL instructions.
This is only a starting point, VMMCALL emulation under SEV-ES needs
further hypervisor-specific changes to provide additional state.

 [ bp: Drop "this patch". ]

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
[ jroedel@suse.de: Adapt to #VC handling infrastructure ]
Co-developed-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-60-joro@8bytes.org
arch/x86/kernel/sev-es.c