Skip to content

x86/CPU: Fix CR4 pinning and FRED in CoCo guests

Borislav Petkov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/cpu: Enable FSGSBASE early in cpu_init_exception_handling()arch/x86/kernel/cpu/common.c+12 -60 replies
2/4x86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits maskarch/x86/kernel/cpu/common.c+1 -11 reply
3/4x86/fred: Fix early boot failures on SEV-ES/SNP guestsarch/x86/coco/sev/noinstr.c arch/x86/entry/entry_fred.c+20 -00 replies
4/4x86/cpu: Add comment clarifying CRn pinningarch/x86/kernel/cpu/common.c+13 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchSohil MehtaTom Lendacky
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] x86/CPU: Fix CR4 pinning and FRED in CoCo guests

From: "Borislav Petkov (AMD)" <[email protected]>

Hi,

the respective patches have very detailed explanations about what this is addressing but basically, there's a window in time during boot when FRED is not setup properly yet and if a CoCo guest generates an exception, it would explode.

So this shuffles things a bit so that that doesn't happen.

Thx.

Borislav Petkov (AMD) (1):
x86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits mask

Nikunj A Dadhania (2):
x86/cpu: Enable FSGSBASE early in cpu_init_exception_handling() x86/fred: Fix early boot failures on SEV-ES/SNP guests

Peter Zijlstra (1):
x86/cpu: Add comment clarifying CRn pinning

 arch/x86/coco/sev/noinstr.c  |  6 ++++++
 arch/x86/entry/entry_fred.c  | 14 ++++++++++++++
 arch/x86/kernel/cpu/common.c | 33 ++++++++++++++++++++++++++-------
 3 files changed, 46 insertions(+), 7 deletions(-)
Signature · 1 line
2.51.0