x86/sev-es: Forward page-faults which happen during emulation
authorJoerg Roedel <jroedel@suse.de>
Wed, 19 May 2021 13:52:45 +0000 (15:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 May 2021 10:06:53 +0000 (12:06 +0200)
commit367c90f2bc1be8932ba2afdc5ce3209417fcdd46
tree54a25fbb1e44ba3d93312f28cd379991a6bb5bff
parent5af89eeb7414609be69626df0b80e9699ce3af13
x86/sev-es: Forward page-faults which happen during emulation

commit c25bbdb564060adaad5c3a8a10765c13487ba6a3 upstream.

When emulating guest instructions for MMIO or IOIO accesses, the #VC
handler might get a page-fault and will not be able to complete. Forward
the page-fault in this case to the correct handler instead of killing
the machine.

Fixes: 0786138c78e7 ("x86/sev-es: Add a Runtime #VC Exception Handler")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: stable@vger.kernel.org # v5.10+
Link: https://lkml.kernel.org/r/20210519135251.30093-3-joro@8bytes.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/sev-es.c