From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.70 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796399332; b=aNU9z4JFEc760mfT4CJSGBpD1HIiZFu3TqjOfTL5tfl2gjF4R+nHTxWxFXvdyoNehPIf 7+P2e3yh0L5B4kztIOJNpZN0koTnhVsfslHUdiE86pqVN1x/2zJ7MAKnjdcur0mU9ua88 TvYvU256OeaiQ6E8QXHJF7GQghHrokm7ucHrQg4pwTjkLB+2VqS0vARGpl7nd4uPzsTyr jhJ1D7Z9Rx740f9RbPRL33yA9AmR3DpvEiqnpqcQxCu0s0Z/0nJMcwK4Apo/XvPJwNa8y X1nuiYT1ulM8DuTw69CRN+JzpgeG1R1cCfO5ijEmEJq/7VpMO/aO1Qmb8V8hKKHmkwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796399332; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Received:Date:Mime-Version:X-Developer-Key: X-Developer-Signature:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=rVIln0ZbU5L0U45YOFpRi/NFPlW4bxdxuPnCCdtoOmM=; b=42QYDW223Vrl6g4FFBZNWiNJYNW4tsxywupOErZ5LuDvGjfxfm+cQAzHeUfrNqN9Fr/g I7DGB1L3CjOxgqAQleIKAQjIlCsu4ZpsfQoG9/JFgHgelC0STh1rF0MvpmhC5oD9qxSVD iVBR4Z8BiVtexaozXKOFipAAdX2SQvPrfdHGPAwsG//41QUC5K+FLTNomtj+AOZKSbVus c9if/zjQX1UU5W6ehlaSjZ0XC80A5QARfaDnsFacdl6eGny+Ymi3ablEvqV86dqhqkKpT lePNjmiKw7uUCdrnGib8pdlNN4yQVq0V9tGYqb1jSczRB6emk4I7PyAogQ1sa4L3lgQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=gz1tCvaf; arc=none smtp.remote-ip=209.85.218.70 Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C878606A322 for ; Fri, 4 Dec 2026 15:48:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4C878606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=gz1tCvaf Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-c525b02d55cso99906566b.2 for ; Fri, 04 Dec 2026 07:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796399331; x=1797004131; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=rVIln0ZbU5L0U45YOFpRi/NFPlW4bxdxuPnCCdtoOmM=; b=gz1tCvafWndtidB556p8MmBBd5a/UmFDcvzrXjK6ntrYv34fCZCMIlFdzDXIv2C4rs 55CwFpAkj0/F9FsHszj4xQE6qOZ6a7JGlqcI8gtAzqyPUWoEpOnb6NilTXTjEaoy04c0 m2B9lLsfdkv/NwSvrP2GSnDVY4k0tfTnaSlafkzWNPjZUHtHc+gKd09X9xIjMiXxhj5n eFBL1MR8T/AozeDL7DgGWgQ59guxTNswfR14Vn1htCov67aiDa3dO4pceTJXazGJeUW6 7PHgofJ1xixnuv1YDLV26qptnLPxs1PQ+vOhSTU8XU2BNCN0WnkZNiL8XTBvU7/Vy91Z bCCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796399331; x=1797004131; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=rVIln0ZbU5L0U45YOFpRi/NFPlW4bxdxuPnCCdtoOmM=; b=Rx2Tc2REYXB6f4nlnslNSAx189zWDhGshHwx7CcczQh2okFs5IZ0Gr0YvjnRkMLev6 1F/lYhOvs74CDW/5ZLMS4rH6nccsLwHdpL1a56TH/mzcZf3mQUUptW5GJr2KUInIDx4Q QlndRWiUp+x2k+U3FXD2SNNIH4Zg7dHXn0H2I4uTU4NGP/5k7B9OWjN8wqiAsRKmFB6q XWJRfpoF0QpGmAqP78frY9mwgcI6JE0doHsHZLo6tVvvYdH3OiazO+EMA3KyHwIzFnaP +5UkVawaQ+dJd/GZ22HtK6afQVl3CjgN+YaXWJrU77AzjN3t7EuLJHQkGorXNIYyQsy4 R86g== X-Gm-Message-State: APuU4Z/GE77/BS8gRi/Ym/jca+gLPwRuJL6cgcsvfVMvKHwXA5AE3Vjp qBzpqy3inQj7rW9oflgACNtUdJFWF665NonfGck0YSz95ERSX9sQZ52F/MMdeD9va91k0L7HJ/B VQ3NYZr6f1i62tdgHKiC6sQeZgFlMHsa5M4OWUL58ePpYnKb3RKc0wkPq/POskSYLnvCNT7jIgH 5awzzDRVNlm8TseRnbg7WOSk0/buoPmQ== X-Received: from ejap26.prod.google.com ([2002:a17:906:229a:b0:c50:559c:5fe7]) (user=ardb job=prod-delivery.src-stubby-dispatcher) by 2002:a17:907:ea5:b0:c52:5165:9f15 with SMTP id a640c23a62f3a-c5262522293mr184146666b.33.1796399330395; Fri, 04 Dec 2026 07:48:50 -0800 (PST) Date: Fri, 4 Dec 2026 16:48:43 +0100 X-Mailing-List: linux-efi@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-Developer-Signature: v=1; a=openpgp-sha256; l=1418; i=ardb@kernel.org; h=from:subject; bh=afSa0RIBSQ70jJ9yfHIGPY6o14RUgTnptso0U3fcphk=; b=owGbwMvMwCVmkMcZplerG8N4Wi2JIVvowe2QqW/v/e5lf99/Oq77Q9mBix+7DMyXvMlwOFJ25 LCyz0qDjlIWBjEuBlkxRRaB2X/f7Tw9UarWeZYszBxWJpAhDFycAjARsw2MDH9zFRQ3CKTtPVHF pSveOi+kTNbvEbuSFOvix5d2ecj232Bk+Ow850gT51Sjtu0Gt2bEzUj6Wd3fvNciaXfFftty1Vd pjAA= X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog Message-ID: <20261204154842.414894-5-ardb+git@google.com> Subject: [PATCH v2 0/3] x86/efistub: Omit SEV-SNP init from the stub From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: Ard Biesheuvel , Borislav Petkov , Tom Lendacky , Ashish Kalra Content-Type: text/plain; charset="UTF-8" From: Ard Biesheuvel Calling sev_enable() from the EFI stub is mostly pointless, as the core kernel does the exact same thing once it boots right after. So set the blob CC address in boot_params from the EFI stub as well, and move the GHCB event support check for SVSM into the source file that the decompressor shares with the core kernel. With those changes, the sev_enable() call from the EFI stub can be dropped, leaving the firmware's #VC handling in place until the kernel proper takes over. Changes since v1 [0]: - Add SVSM GHCB handling - Rebase onto recent kernel [0] https://lore.kernel.org/linux-efi/20250909080631.2867579-5-ardb+git@google.com/ Cc: Borislav Petkov Cc: Tom Lendacky Cc: Ashish Kalra Ard Biesheuvel (3): x86/efistub: Obtain SEV CC blob address from the stub x86/sev: Check for SVSM GHCB event support in svsm_setup_ca() x86/efistub: Don't bother enabling SEV in the EFI stub arch/x86/boot/compressed/sev.c | 7 ---- arch/x86/boot/startup/exports.h | 1 + arch/x86/boot/startup/sev-shared.c | 32 ++++++++++++++++++ arch/x86/coco/sev/vc-shared.c | 21 ------------ arch/x86/include/asm/sev.h | 2 -- drivers/firmware/efi/libstub/x86-stub.c | 34 +++++++++++++------- 6 files changed, 56 insertions(+), 41 deletions(-) -- 2.56.1.915.g69d5ec7298-goog