x86/sev-es: Use insn_decode_mmio() for MMIO implementation
authorKirill A. Shutemov <kirill@shutemov.name>
Tue, 30 Nov 2021 18:49:33 +0000 (21:49 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Tue, 30 Nov 2021 22:53:30 +0000 (14:53 -0800)
commitc494eb366dbfc5095c0f159bbb5c6d4ec3ed37ec
tree5ac9bda3fb4cbc8ed80980e6c0a798cba71e323a
parent70a81f99e45b15b3e77f70720742545e1c7541da
x86/sev-es: Use insn_decode_mmio() for MMIO implementation

Switch SEV implementation to insn_decode_mmio(). The helper is going
to be used by TDX too.

No functional changes.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Tested-by: Joerg Roedel <jroedel@suse.de>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lkml.kernel.org/r/20211130184933.31005-5-kirill.shutemov@linux.intel.com
arch/x86/kernel/sev.c