Re: [PATCH v1 00/19] x86/insn: Add an insn_decode() API

2021-02-03 Thread Borislav Petkov
On Sun, Dec 27, 2020 at 09:26:04AM -0600, Tom Lendacky wrote: > > We could also say that probably there should be a way to say "decode > > only the first insn in the buffer and ignore the rest". That is all up > > to the use cases so I'm looking for suggestions here. > > That's the way it works

Re: [PATCH v1 00/19] x86/insn: Add an insn_decode() API

2020-12-27 Thread Tom Lendacky
On 12/23/20 11:42 AM, Borislav Petkov wrote: From: Borislav Petkov Hi, here's v1 with the requested change to return -ENODATA on short input to the decoder. The rest is as in the previous submission. Only lightly tested. Thx. changelog: == That is, provided this is how we want to

[PATCH v1 00/19] x86/insn: Add an insn_decode() API

2020-12-23 Thread Borislav Petkov
From: Borislav Petkov Hi, here's v1 with the requested change to return -ENODATA on short input to the decoder. The rest is as in the previous submission. Only lightly tested. Thx. changelog: == v0: --- https://lkml.kernel.org/r/20201124101952.7909-1...@alien8.de here's what I had