summaryrefslogtreecommitdiff
path: root/rust/kernel/ptr/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorTycho Andersen (AMD) <tycho@kernel.org>2026-03-26 10:11:05 -0600
committerBorislav Petkov (AMD) <bp@alien8.de>2026-03-28 22:16:03 +0100
commitca2ca373ec854d203c74e6ac1c4e08a70e8d2509 (patch)
tree09a34bf4eb4f758e83f7edf19a9d1a7e3d85cc32 /rust/kernel/ptr/git@git.tavy.me:linux.git
parent9c016c3f4928f436b9ad20f30a5a9d538490fbb4 (diff)
x86/sev: Create snp_prepare()
In preparation for delayed SNP initialization, create a function snp_prepare() that does the necessary architecture setup. Export this function for the ccp module to allow it to do the setup as necessary. Introduce a cpu_read_lock/unlock() wrapper around the MFDM and SNP enable. While CPU hotplug is not supported, this makes sure that the bit setting happens on the same set of CPUs in both cases. This improvement was suggested by Sashiko: https://sashiko.dev/#/patchset/20260324161301.1353976-1-tycho%40kernel.org Also move {mfd,snp}_enable() out of the __init section, since these will be called later. Signed-off-by: Tycho Andersen (AMD) <tycho@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com> Link: https://patch.msgid.link/20260326161110.1764303-3-tycho@kernel.org
Diffstat (limited to 'rust/kernel/ptr/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions