From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mohammed Gamal Subject: Re: OPCODE Emulation Date: Fri, 7 May 2010 02:21:22 +0300 Message-ID: References: <4BE32875.4030908@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Matteo Signorini Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:52058 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754295Ab0EFXVY convert rfc822-to-8bit (ORCPT ); Thu, 6 May 2010 19:21:24 -0400 Received: by fxm10 with SMTP id 10so397080fxm.19 for ; Thu, 06 May 2010 16:21:22 -0700 (PDT) In-Reply-To: <4BE32875.4030908@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, May 6, 2010 at 11:37 PM, Matteo Signorini wrote: > > Dear Yaniv, Dear Avi, > > I would like to add the "sidt emulation" feature in kvm, but in order= to > implement it I need to know the details on how the OPCODE works and h= ow exactly opcodes are emulated within kvm. > For example let's take the SIDT instruction. > I know the LIDT opcode is "0F 01 /1" but what does 0F, 01 and /1 mean= ? > I also know that this instruction has only the operand "ModRM:r/m (w)= " > but where is this operand stored and how can I access it in emulation= ? > =A0Could you please suggest to me where can I found some detailed doc= s on the subject? > (I have already read the Intel Volume 2B Instruction Set Reference N-= Z pag. 4-440 but I have not found enough detailed information) > > Thank you > > Matteo Signorini Hi Matteo, arch/x86/kvm/emulate.c is the best place to start. All you need to look at is there. Regards, Mohammed > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at =A0http://vger.kernel.org/majordomo-info.html