x86/sev-es: Handle MMIO events
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 7 Sep 2020 13:15:50 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 9 Sep 2020 09:33:19 +0000 (11:33 +0200)
commit51ee7d6e3d2b70a3f232cceffab5084a2abd6719
tree3d91ea4317b255172111a14a36b9ee1a1f7c5690
parent5e3427a7bc432ed2e5de394ac30f160cc6c37a1f
x86/sev-es: Handle MMIO events

Add a handler for #VC exceptions caused by MMIO intercepts. These
intercepts come along as nested page faults on pages with reserved
bits set.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
[ jroedel@suse.de: Adapt to VC handling framework ]
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-50-joro@8bytes.org
arch/x86/include/uapi/asm/svm.h
arch/x86/kernel/sev-es.c