x86/umip: Factor out instruction decoding
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:15:10 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 7 Sep 2020 17:45:24 +0000 (19:45 +0200)
commit172639d79977ca7b5ce6f84f6606262f4081718f
treeb54aa0ee26b44a3ab481810342049c92c112b1ce
parent172b75e56b08846e6fb07a88e5685ce4e24f4620
x86/umip: Factor out instruction decoding

Factor out the code used to decode an instruction with the correct
address and operand sizes to a helper function.

No functional changes.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-10-joro@8bytes.org
arch/x86/include/asm/insn-eval.h
arch/x86/kernel/umip.c
arch/x86/lib/insn-eval.c