[RFC v2-fix-v3 0/4] x86/tdx: Handle in-kernel MMIO
From: Kuppuswamy Sathyanarayanan
Date: Tue Jun 08 2021 - 12:00:01 EST
This patchset addresses the review comments in the patch titled
"x86/tdx: Handle in-kernel MMIO". Since it requires
patch split, sending these together.
Changes since RFC-v2-fix-v2:
* Further divided patch "x86/sev-es: Abstract out MMIO instruction
decoding", and moved generic APIs common to both TDX/SEV into
seperate patches. Also introduced new patch for AMD code to utilize
the generic APIs.
* Fixed commit log as per review comments.
Changes since RFC v2-fix:
* Introduced "x86/sev-es: Abstract out MMIO instruction
decoding" patch for sharing common code between TDX
and SEV.
* Modified TDX MMIO code to utilize common shared functions.
* Modified commit log to reflect latest changes and to
address review comments.
Changes since RFC v2:
* Fixed commit log as per Dave's review.
Kirill A. Shutemov (4):
x86/insn-eval: Introduce insn_get_modrm_reg_ptr()
x86/insn-eval: Introduce insn_decode_mmio()
x86/sev-es: Use insn_decode_mmio() for MMIO implementation
x86/tdx: Handle in-kernel MMIO
arch/x86/include/asm/insn-eval.h | 13 +++
arch/x86/kernel/sev.c | 171 ++++++++-----------------------
arch/x86/kernel/tdx.c | 109 ++++++++++++++++++++
arch/x86/lib/insn-eval.c | 102 ++++++++++++++++++
4 files changed, 264 insertions(+), 131 deletions(-)
--
2.25.1