[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1/3] x86: add support for computing the instruction length


  • To: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>
  • From: Mihai DonÈu <mdontu@xxxxxxxxxxxxxxx>
  • Date: Tue, 9 Sep 2014 12:44:31 +0300
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, keir@xxxxxxx, jbeulich@xxxxxxxx, Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Tue, 09 Sep 2014 09:44:51 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=YRu6k7c+Zf8lEplhBAZ6KXP3LolOpM8uZrmqpNKz/x+X5Gy1zSoclS393cLVp6it07vxP29Umc6yamMP5CKNseZE1m9isCwiLvX9xD2QTHCHWYX/c0V4YWqt8DQTq30WiPWFF37TtcDz/CADe2B56aWxRHkqSROIVKuaGRkaWaahyg0nztUciQdADYUakRUMkNQNRLfrWLdcR9oiQpZcxS1ls+8v8Ut6pOlFKMBF18/XJW8gZf8zRb3e1AoouW61IVwZoBCgf+h5mCyH2Z8o+rE6KNqRbx36HFn9sRHmw9zMNfFd/6GjdSCwRQQZwWyyAH6n6ANCo93U5gDn9GQJUA==; h=Received:Received:Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:Organization:MIME-Version:Content-Type:Content-Transfer-Encoding:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On Tue, 9 Sep 2014 11:47:05 +0300 Mihai DonÈu wrote:
> On Tuesday 09 September 2014 05:28:02 Mihai DonÈu wrote:
> > This patch adds support for computing the length of an instruction. The 
> > entire
> > logic relies on a set of opcode tables generated by gen-insn-attr-x86.awk 
> > from
> > x86-opcode-map.txt and a number of small helper functions. It originated in
> > Linux, where it was added by Masami Hiramatsu. Since it's an almost 
> > identical
> > copy, it's separated from the x86 emulator, simplifying future updates.
> > 
> > ---
> > Changed since v1:
> >   * adjusted the coding style to match the rest of xen
> >   * moved the source files into x86/x86_emulate
> >   * replaced inat-tables.c with x86-opcode-map.txt and gen-insn-attr-x86.awk
> >     that are used to generate it
> > 
> > Signed-off-by: Mihai DonÈu <mdontu@xxxxxxxxxxxxxxx>
> 
> There are a couple of design issues with this code which Jan pointed
> out and which I overlooked. I'm sorry, it was not intentional. I'll do
> my best to address them in a following email.

I'd like to give it a try at saving some time by asking the author
behind the Linux code what is his opinion on this.

Masami, I'm trying to bring to xen the code you wrote for Linux a while
back and which uses an opcode map, a script and some helper functions
(insn.c, inat.c) to compute an instruction's length. Jan has made some
observations which I believe would be of interest to the kernel
developers as well. Please see:

http://lists.xenproject.org/archives/html/xen-devel/2014-07/msg00375.html

While valid, would they affect the overall goal of insn_get_length() or
is that function tuned for a specific use case? I can't yet tell for
sure if we can get away with it.

Thanks,

-- 
Mihai DonÈu

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.