[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211018165614.20153-1-kirill.shutemov@linux.intel.com>
Date: Mon, 18 Oct 2021 19:56:11 +0300
From: "Kirill A. Shutemov" <kirill@...temov.name>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Tom Lendacky <thomas.lendacky@....com>,
Joerg Roedel <jroedel@...e.de>
Cc: Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@...ux.intel.com>,
Andi Kleen <ak@...ux.intel.com>,
Dave Hansen <dave.hansen@...el.com>,
Sean Christopherson <seanjc@...gle.com>,
Peter Zijlstra <peterz@...radead.org>, x86@...nel.org,
linux-kernel@...r.kernel.org,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Subject: [PATCHv2 0/3] Add generic MMIO instruction deconding to be used in SEV and TDX
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.
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 (3):
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 | 104 +++++++++++++++++++
3 files changed, 157 insertions(+), 131 deletions(-)
--
2.32.0
Powered by blists - more mailing lists