kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mohammed Gamal <m.gamal005@gmail.com>
To: Matteo Signorini <signorinimatteo@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: OPCODE Emulation
Date: Fri, 7 May 2010 02:21:22 +0300	[thread overview]
Message-ID: <i2v52d4a3891005061621p698136c4ga6dfd3ff55e116ba@mail.gmail.com> (raw)
In-Reply-To: <4BE32875.4030908@gmail.com>

On Thu, May 6, 2010 at 11:37 PM, Matteo Signorini
<signorinimatteo@gmail.com> 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 how 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?
>  Could you please suggest to me where can I found some detailed docs 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  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2010-05-06 23:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-06 20:37 OPCODE Emulation Matteo Signorini
2010-05-06 23:21 ` Mohammed Gamal [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=i2v52d4a3891005061621p698136c4ga6dfd3ff55e116ba@mail.gmail.com \
    --to=m.gamal005@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=signorinimatteo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).