* OPCODE Emulation
@ 2010-05-06 20:37 Matteo Signorini
2010-05-06 23:21 ` Mohammed Gamal
0 siblings, 1 reply; 2+ messages in thread
From: Matteo Signorini @ 2010-05-06 20:37 UTC (permalink / raw)
To: kvm
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: OPCODE Emulation
2010-05-06 20:37 OPCODE Emulation Matteo Signorini
@ 2010-05-06 23:21 ` Mohammed Gamal
0 siblings, 0 replies; 2+ messages in thread
From: Mohammed Gamal @ 2010-05-06 23:21 UTC (permalink / raw)
To: Matteo Signorini; +Cc: kvm
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-06 23:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 20:37 OPCODE Emulation Matteo Signorini
2010-05-06 23:21 ` Mohammed Gamal
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).