x86/realmode: Add SEV-ES specific trampoline entry point
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:16:06 +0000 (15:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 9 Sep 2020 09:33:20 +0000 (11:33 +0200)
commitbf5ff276448f64f1f9ef9ffc9e231026e3887d3d
tree9ace2deb346c3d161a42923f4164948a27994651
parent1a222de8dcfb903d039810b0823570ee0be4e6c6
x86/realmode: Add SEV-ES specific trampoline entry point

The code at the trampoline entry point is executed in real-mode. In
real-mode, #VC exceptions can't be handled so anything that might cause
such an exception must be avoided.

In the standard trampoline entry code this is the WBINVD instruction and
the call to verify_cpu(), which are both not needed anyway when running
as an SEV-ES guest.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-66-joro@8bytes.org
arch/x86/include/asm/realmode.h
arch/x86/realmode/rm/header.S
arch/x86/realmode/rm/trampoline_64.S