]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/sev: Cleanup vc_handle_msr()
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 6 Nov 2024 17:21:58 +0000 (18:21 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 7 Nov 2024 11:10:01 +0000 (12:10 +0100)
commit8bca85cc1eb72e21a3544ab32e546a819d8674ca
tree74ca777aa80c78c9f95fd4469897d777f8bd9daa
parent3074152e56c9b0f9b9c67edfbc08b371db050b6d
x86/sev: Cleanup vc_handle_msr()

Carve out the MSR_SVSM_CAA into a helper with the suggestion that
upcoming future users should do the same. Rename that silly exit_info_1
into what it actually means in this function - whether the MSR access is
a read or a write.

No functional changes.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Link: https://lore.kernel.org/r/20241106172647.GAZyum1zngPDwyD2IJ@fat_crate.local
arch/x86/coco/sev/core.c