x86/srso: Add IBPB on VMEXIT

Upstream commit: d893832d0e

Add the option to flush IBPB only on VMEXIT in order to protect from
malicious guests but one otherwise trusts the software that runs on the
hypervisor.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Borislav Petkov (AMD) 2023-07-07 13:53:41 +02:00 • committed by Greg Kroah-Hartman
commit c9ae63d773
4 changed files with 26 additions and 1 deletions