From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D2573AA4F0 for ; Fri, 20 Mar 2026 11:54:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774007662; cv=none; b=jFK8DsVig1SJYeISQa/AU0ZkGyInb9VdNokmKUfw/GRKKp+Y/SEr33L6yY101gbWSlDJx+fYGWNghEAM/F901dbOQJ6XEwL+err/6iE3kbvhZvf09KXW3NE5Kp/Z6+oInifodYlF9HkWGjW+Y1WIbOgjVbs/CuPhc3zEGi4ikq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774007662; c=relaxed/simple; bh=cbA0WSVDiJU3NVn1qlY7rRU/2zNiA/AZDot9Cnr8Vt4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kIKtpJxq9tmvAZ2ol7yO8NCCkEBk6T3v2+NzNsV/hGYT2R+FKiih4fq8aVXAC71XvEForUrYZ5NVUy31lBjt/IVgxoVtRIjEykR3QT2GknmnpxknH0j8R69pSBW8RpX6nd5wkTV8B3RjYKrguzsaIm/vZx5M8m6O4mkeEdc2hzc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q52Vk7Sa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q52Vk7Sa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB61FC4CEF7; Fri, 20 Mar 2026 11:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774007661; bh=cbA0WSVDiJU3NVn1qlY7rRU/2zNiA/AZDot9Cnr8Vt4=; h=From:To:Cc:Subject:Date:From; b=q52Vk7SaQYjLq9xQ7mt8DzMSfy509Ofbh/SRmKDJxfUJaeAonUE5tPH8K1jMrn57E EWhPp+1pUKCNH/Krq8O4LSFy6lgGnF4UvuYa3DCFYZcEbfQSDCZunamy50BM/xWsw9 1hq6OzmfeNsI8f+6d2gvCHKdYpZuB0GkvDgVSCd+slO1+AeAQ6t1QzAojLSb9R6KAf /Tv72bS2V4tprsnQ7zUMs+CiwJsCv+7i6oaQd3KHbtoyzXlXsNfLFu9eoBkMaKyAFm d14IB+F2jEQ9/IStEktXZ0kVjTdMDW5IsffVxt+vW848XRSVrjvEUnOoV6LzlfMFSD Bu6GJjxbyIxXQ== From: Borislav Petkov To: X86 ML Cc: Nikunj A Dadhania , LKML , "Borislav Petkov (AMD)" Subject: [PATCH 0/4] x86/CPU: Fix CR4 pinning and FRED in CoCo guests Date: Fri, 20 Mar 2026 12:54:13 +0100 Message-ID: <20260320115417.4156-1-bp@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Borislav Petkov (AMD)" 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(-) -- 2.51.0