Skip to content

RFC x86/tdx: Handle in-kernel MMIO

Kuppuswamy Sathyanarayanan linux-acpi lkml oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 0 repliesNew

Changes since RFC v2 from the cover letter

* Fixed commit log as per Dave's review.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/insn-eval: Introduce insn_get_modrm_reg_ptr()arch/x86/include/asm/insn-eval.h arch/x86/lib/insn-eval.c+21 -00 replies
2/4x86/insn-eval: Introduce insn_decode_mmio()arch/x86/include/asm/insn-eval.h arch/x86/lib/insn-eval.c+94 -00 replies
3/4x86/sev-es: Use insn_decode_mmio() for MMIO implementationarch/x86/kernel/sev.c+40 -1310 replies
4/4x86/tdx: Handle in-kernel MMIOarch/x86/kernel/tdx.c+109 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC v2-fix-v3 0/4] x86/tdx: Handle in-kernel MMIO

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(-)
Signature · 1 line
2.25.1