linux/arch/x86/coco/sev
Kim Phillips 9073428bb2 x86/sev: Allow IBPB-on-Entry feature for SNP guests
The SEV-SNP IBPB-on-Entry feature does not require a guest-side
implementation. It was added in Zen5 h/w, after the first SNP Zen
implementation, and thus was not accounted for when the initial set of SNP
features were added to the kernel.

In its abundant precaution, commit

  8c29f01654 ("x86/sev: Add SEV-SNP guest feature negotiation support")

included SEV_STATUS' IBPB-on-Entry bit as a reserved bit, thereby masking
guests from using the feature.

Allow guests to make use of IBPB-on-Entry when supported by the hypervisor, as
the bit is now architecturally defined and safe to expose.

Fixes: 8c29f01654 ("x86/sev: Add SEV-SNP guest feature negotiation support")
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Nikunj A Dadhania <nikunj@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Cc: stable@kernel.org
Link: https://patch.msgid.link/20260203222405.4065706-2-kim.phillips@amd.com
2026-03-02 11:08:59 +01:00
..
core.c x86/sev: Allow IBPB-on-Entry feature for SNP guests 2026-03-02 11:08:59 +01:00
internal.h x86/sev: Rename sev_es_ghcb_handle_msr() to __vc_handle_msr() 2026-01-19 15:23:48 +01:00
Makefile - Make the SEV internal header really internal and carve out the SVSM-specific 2026-02-10 19:19:06 -08:00
noinstr.c x86/sev: Move the internal header 2025-12-31 13:05:40 +01:00
svsm.c x86/sev: Carve out the SVSM code into a separate compilation unit 2025-12-31 13:18:23 +01:00
vc-handle.c x86/sev: Rename sev_es_ghcb_handle_msr() to __vc_handle_msr() 2026-01-19 15:23:48 +01:00
vc-shared.c x86/coco/sev: Convert has_cpuflag() to use cpu_feature_enabled() 2025-11-11 16:42:31 +01:00