x86/sev-es: Split vc_decode_insn()
authorBorislav Petkov <bp@suse.de>
Tue, 23 Feb 2021 10:28:02 +0000 (11:28 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 15 Mar 2021 10:40:05 +0000 (11:40 +0100)
commit99e4b0de4d663e247f068bb5e014593b624a4ef0
tree4312503a529c0d9ec60c60bb8e0254dbbf14d011
parent77e768ec1391dc0d6cd89822aa60b9a1c1bd8128
x86/sev-es: Split vc_decode_insn()

Split it into two helpers - a user- and a kernel-mode one for
readability. Yes, the original function body is not that convoluted but
splitting it makes following through that code trivial than having to
pay attention to each little difference when in user or in kernel mode.

No functional changes.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210304174237.31945-13-bp@alien8.de
arch/x86/kernel/sev-es.c