From nobody Sat Apr 11 10:32:53 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 CFC3D36EA9A; Tue, 10 Mar 2026 10:47:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773139626; cv=none; b=c6SZqKzmW5UI1oEafvbMaQbIM3mRCQCeQsfQlkQUYAk/NEXmDJFVrtK098ZKjVweWjNg3ZViPujYFLasEO60uxDP+dKXaamXXWFSPxkPdZT0Wi4lXaCCegI0aY1x9PgpvFznrbxE610Vk0S//3eEzyfy1Q2WGZbPSQbqlbRAXJM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773139626; c=relaxed/simple; bh=9TM5vU7RxZHD+e6Lz8oCnhvNrs3ymBDzM87pJTgRRdU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Zosao/zE6O0KF3HK6030Htei9x8zZyrZku9jHAivHHdR/V5/iEVpEgAimdDOrSYOHUT4M10LHcV+kN3KVW5d9AiEc8cI/6z+as745vMbVqlMV6ngUL3vCkwzfwajduoqrYppQxYjXcIwVylzF0dokrAqE8jdZTXkUiTu283HXoY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bVqNXu5i; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=H11clf0s; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bVqNXu5i"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="H11clf0s" Date: Tue, 10 Mar 2026 10:47:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773139623; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BtyhRNbRKHgGM/lQSI70wB+M3v/335Dkf3Ptiq9oOoY=; b=bVqNXu5iMswVlm4t/PdDm0YmmZG0Ulcp0qUExcf/A85DpUbgEzEGY/PobN5EOFsyVW48hX JJH0ScrFJQ6Pz8KKGtCucj0YjHQo6W0COOY7rYAlOYlpg7UqvmmzgALv1LV/W8hQAUgrcn 3de/0GFxSBebUV4ZXd7TfYmtYDoaBqh8yZTbDVCbod7n890z2tga+o4zHowQa80xhlAdOS FXlBhwlxTKnMlh0gBhp0pxJOQIljhjvt9Ba/KcrbUzhdZosYjZ117whw6kXg2u7YJk+OS4 K5s4r2TiJiN1a6H3M3mnMEa2uiGXiE17GfDNoZ0sJT18OZMhZWlZpHnLVQU8sw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773139623; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BtyhRNbRKHgGM/lQSI70wB+M3v/335Dkf3Ptiq9oOoY=; b=H11clf0s5htqPqKdq7AL8JWJP9jDCFlbbeB4tj21iROG3/2eyFWy4qm/dPvkfAAiWUGyNu BSrY9fEZhCML2eCg== From: "tip-bot2 for Tycho Andersen (AMD)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/sev] x86/virt/sev: Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN Cc: "Tycho Andersen (AMD)" , "Borislav Petkov (AMD)" , Tom Lendacky , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260309180053.2389118-3-tycho@kernel.org> References: <20260309180053.2389118-3-tycho@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177313962195.1647592.10222473050754643568.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/sev branch of tip: Commit-ID: 99cf1fb58e68291d408b4c4484181cf88f081857 Gitweb: https://git.kernel.org/tip/99cf1fb58e68291d408b4c4484181cf88= f081857 Author: Tycho Andersen (AMD) AuthorDate: Mon, 09 Mar 2026 12:00:44 -06:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 09 Mar 2026 21:48:46 +01:00 x86/virt/sev: Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN WBINVD is required before SNP_INIT(_EX), but not before setting MSR_AMD64_SYSCFG_SNP_EN, since the ccp driver already does its own WBINVD before SNP_INIT (and this one would be too early for that anyway...). Signed-off-by: Tycho Andersen (AMD) Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Tom Lendacky Link: https://patch.msgid.link/20260309180053.2389118-3-tycho@kernel.org --- arch/x86/virt/svm/sev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/virt/svm/sev.c b/arch/x86/virt/svm/sev.c index f404c60..5e07f10 100644 --- a/arch/x86/virt/svm/sev.c +++ b/arch/x86/virt/svm/sev.c @@ -524,9 +524,6 @@ int __init snp_rmptable_init(void) memset(desc->rmp_entry, 0, desc->size); } =20 - /* Flush the caches to ensure that data is written before SNP is enabled.= */ - wbinvd_on_all_cpus(); - /* MtrrFixDramModEn must be enabled on all the CPUs prior to enabling SNP= . */ on_each_cpu(mfd_enable, NULL, 1); =20