The following commit has been merged into the x86/sev branch of tip: Commit-ID: 453e580abcdb53f688d5711c68bec96bea35430d Gitweb: https://git.kernel.org/tip/453e580abcdb53f688d5711c68bec96bea35430d Author: Peter Gonda <pgonda@xxxxxxxxxx> AuthorDate: Thu, 17 Mar 2022 14:19:13 -07:00 Committer: Borislav Petkov <bp@xxxxxxx> CommitterDate: Tue, 05 Apr 2022 19:33:55 +02:00 x86/sev-es: Replace open-coded hlt-loop with sev_es_terminate() Replace the halt loop in handle_vc_boot_ghcb() with an sev_es_terminate(). The HLT gives the system no indication the guest is unhappy. The termination request will signal there was an error during VC handling during boot. Signed-off-by: Peter Gonda <pgonda@xxxxxxxxxx> Signed-off-by: Borislav Petkov <bp@xxxxxxx> Reviewed-by: Joerg Roedel <jroedel@xxxxxxx> Link: https://lore.kernel.org/r/20220317211913.1397427-1-pgonda@xxxxxxxxxx --- arch/x86/kernel/sev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kernel/sev.c b/arch/x86/kernel/sev.c index e6d316a..ae87fbf 100644 --- a/arch/x86/kernel/sev.c +++ b/arch/x86/kernel/sev.c @@ -1425,6 +1425,5 @@ bool __init handle_vc_boot_ghcb(struct pt_regs *regs) fail: show_regs(regs); - while (true) - halt(); + sev_es_terminate(GHCB_SEV_ES_GEN_REQ); }