All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv3 0/4] Add generic MMIO instruction deconding to be used in SEV and TDX
@ 2021-11-03 15:45 Kirill A. Shutemov
  2021-11-03 15:45 ` [PATCHv3 1/4] x86/insn-eval: Handle insn_get_opcode() failure Kirill A. Shutemov
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Kirill A. Shutemov @ 2021-11-03 15:45 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Tom Lendacky,
	Joerg Roedel
  Cc: Kuppuswamy Sathyanarayanan, Andi Kleen, Dave Hansen,
	Sean Christopherson, Peter Zijlstra, x86, linux-kernel,
	Kirill A. Shutemov


Both AMD SEV and Intel TDX has to decode MMIO instruction to be able to
handle MMIO.

Extract insn_decode_mmio() from SEV code. TDX will also use this helper.

v3:
 - Handle insn_get_opcode() in is_string_insn()
v2:
 - insn_get_modrm_reg_ptr() returns unsigned long pointer now (PeterZ);
 - Handle insn_get_opcode() failure in insn_decode_mmio() (PeterZ);

Kirill A. Shutemov (4):
  x86/insn-eval: Handle insn_get_opcode() failure
  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

 arch/x86/include/asm/insn-eval.h |  13 +++
 arch/x86/kernel/sev.c            | 171 ++++++++-----------------------
 arch/x86/lib/insn-eval.c         | 109 +++++++++++++++++++-
 3 files changed, 160 insertions(+), 133 deletions(-)

-- 
2.32.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-30 16:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-03 15:45 [PATCHv3 0/4] Add generic MMIO instruction deconding to be used in SEV and TDX Kirill A. Shutemov
2021-11-03 15:45 ` [PATCHv3 1/4] x86/insn-eval: Handle insn_get_opcode() failure Kirill A. Shutemov
2021-11-03 15:45 ` [PATCHv3 2/4] x86/insn-eval: Introduce insn_get_modrm_reg_ptr() Kirill A. Shutemov
2021-11-03 15:45 ` [PATCHv3 3/4] x86/insn-eval: Introduce insn_decode_mmio() Kirill A. Shutemov
2021-11-29 21:29   ` Tom Lendacky
2021-11-03 15:45 ` [PATCHv3 4/4] x86/sev-es: Use insn_decode_mmio() for MMIO implementation Kirill A. Shutemov
2021-11-29 21:31   ` Tom Lendacky
2021-11-30 16:41 ` [PATCHv3 0/4] Add generic MMIO instruction deconding to be used in SEV and TDX Joerg Roedel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.