From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matteo Signorini Subject: OPCODE Emulation Date: Thu, 06 May 2010 22:37:09 +0200 Message-ID: <4BE32875.4030908@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail-ww0-f46.google.com ([74.125.82.46]:55050 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932426Ab0EFUh0 (ORCPT ); Thu, 6 May 2010 16:37:26 -0400 Received: by wwb39 with SMTP id 39so324029wwb.19 for ; Thu, 06 May 2010 13:37:25 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: 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