[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176367038604.498.13157799126201872220.tip-bot2@tip-bot2>
Date: Thu, 20 Nov 2025 20:26:26 -0000
From: "tip-bot2 for Ard Biesheuvel" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Ard Biesheuvel <ardb@...nel.org>, "Borislav Petkov (AMD)" <bp@...en8.de>,
Tom Lendacky <thomas.lendacky@....com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: x86/sev] x86/boot: Drop unused sev_enable() fallback
The following commit has been merged into the x86/sev branch of tip:
Commit-ID: a3e69071289288e2721ba15254e7c5274eddd05a
Gitweb: https://git.kernel.org/tip/a3e69071289288e2721ba15254e7c5274eddd05a
Author: Ard Biesheuvel <ardb@...nel.org>
AuthorDate: Tue, 09 Sep 2025 10:06:33 +02:00
Committer: Borislav Petkov (AMD) <bp@...en8.de>
CommitterDate: Thu, 20 Nov 2025 21:12:48 +01:00
x86/boot: Drop unused sev_enable() fallback
The misc.h header is not included by the EFI stub, which is the only
C caller of sev_enable(). This means the fallback for cases where
CONFIG_AMD_MEM_ENCRYPT is not set is never used, so it can be dropped.
Signed-off-by: Ard Biesheuvel <ardb@...nel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@...en8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@....com>
Link: https://patch.msgid.link/20250909080631.2867579-6-ardb+git@google.com
---
arch/x86/boot/compressed/misc.h | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h
index db10486..fd855e3 100644
--- a/arch/x86/boot/compressed/misc.h
+++ b/arch/x86/boot/compressed/misc.h
@@ -152,17 +152,6 @@ bool insn_has_rep_prefix(struct insn *insn);
void sev_insn_decode_init(void);
bool early_setup_ghcb(void);
#else
-static inline void sev_enable(struct boot_params *bp)
-{
- /*
- * bp->cc_blob_address should only be set by boot/compressed kernel.
- * Initialize it to 0 unconditionally (thus here in this stub too) to
- * ensure that uninitialized values from buggy bootloaders aren't
- * propagated.
- */
- if (bp)
- bp->cc_blob_address = 0;
-}
static inline void snp_check_features(void) { }
static inline void sev_es_shutdown_ghcb(void) { }
static inline bool sev_es_check_ghcb_fault(unsigned long address)
Powered by blists - more mailing lists