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
This commit is contained in:
Joerg Roedel 2020-09-07 15:15:10 +02:00 • committed by Borislav Petkov
commit 172639d799
3 changed files with 48 additions and 22 deletions