public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] x86/insn: support decode MOVSXD instruction for MMIO
@ 2023-03-29  2:59 Wu Zongyong
  2023-03-29 13:49 ` Tom Lendacky
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Wu Zongyong @ 2023-03-29  2:59 UTC (permalink / raw)
  To: tglx, mingo, dave.hansen, x86, linux-kernel
  Cc: Wu Zongyong, thomas.lendacky, tony.luck, kirill.shutemov,
	wutu.xq2

It seems MOVSXD which opcode is 0x63 is not handled, support
to decode it in insn_decode_mmio().

Signed-off-by: Wu Zongyong <wuzongyong@linux.alibaba.com>
---
 arch/x86/lib/insn-eval.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/x86/lib/insn-eval.c b/arch/x86/lib/insn-eval.c
index 558a605929db..db6f93bad219 100644
--- a/arch/x86/lib/insn-eval.c
+++ b/arch/x86/lib/insn-eval.c
@@ -1607,6 +1607,10 @@ enum insn_mmio_type insn_decode_mmio(struct insn *insn, int *bytes)
 		return INSN_MMIO_DECODE_FAILED;
 
 	switch (insn->opcode.bytes[0]) {
+	case 0x63: /* MOVSXD r64, m32 */
+		*bytes = 4;
+		type = INSN_MMIO_READ_SIGN_EXTEND;
+		break;
 	case 0x88: /* MOV m8,r8 */
 		*bytes = 1;
 		fallthrough;
-- 
2.34.3


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

end of thread, other threads:[~2023-03-31 15:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-29  2:59 [RFC PATCH] x86/insn: support decode MOVSXD instruction for MMIO Wu Zongyong
2023-03-29 13:49 ` Tom Lendacky
2023-03-30  2:55   ` Wu Zongyong
2023-03-30 12:39 ` kirill.shutemov
2023-03-31  2:24   ` Wu Zongyong
2023-03-31  8:49     ` David Laight
2023-03-31 10:06       ` Kirill A. Shutemov
2023-03-31 13:40         ` Tom Lendacky
2023-03-31 14:09           ` Kirill A. Shutemov
2023-03-31 14:33             ` Tom Lendacky
2023-03-31 15:25               ` Kirill A. Shutemov
2023-03-31 15:50                 ` Tom Lendacky
2023-03-31 15:59                 ` David Laight
2023-03-31 15:30 ` Dave Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox