Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KY3LJ-0006ZR-6i for qemu-devel@nongnu.org; Tue, 26 Aug 2008 14:32:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KY3LG-0006Z6-Gs for qemu-devel@nongnu.org; Tue, 26 Aug 2008 14:32:35 -0400 Received: from [199.232.76.173] (port=53049 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KY3LG-0006Z2-CP for qemu-devel@nongnu.org; Tue, 26 Aug 2008 14:32:34 -0400 Received: from web110506.mail.gq1.yahoo.com ([67.195.8.254]:41796) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KY3LF-0005Bb-RB for qemu-devel@nongnu.org; Tue, 26 Aug 2008 14:32:34 -0400 Date: Tue, 26 Aug 2008 11:32:31 -0700 (PDT) From: Mohammad Al-Saleh MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1445982234-1219775551=:40968" Message-ID: <145875.40968.qm@web110506.mail.gq1.yahoo.com> Subject: [Qemu-devel] Fetching & Translating Instructions Reply-To: alsaleh_111@yahoo.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0-1445982234-1219775551=:40968 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi; I am really confused about what is going on in fetching and then translatin= g instructions. First of all, the 'start_pc' parameter of the function 'dis= as_insn'=A0 in target-i386/translator.c contains a virtual address but it i= s used directly to get guest instruction code! how come? should the instruc= tion be read from guest physical memory or from host memory? I need the exa= ct physical memory of the guest from which we fetch an instruction to be ex= ecuted?=20 Any help is very appreciated... Thanks, ...Mohammed =0A=0A=0A --0-1445982234-1219775551=:40968 Content-Type: text/html; charset=us-ascii
Hi;

I am really confused about what is going on in fetching and then translating instructions. First of all, the 'start_pc' parameter of the function 'disas_insn'  in target-i386/translator.c contains a virtual address but it is used directly to get guest instruction code! how come? should the instruction be read from guest physical memory or from host memory? I need the exact physical memory of the guest from which we fetch an instruction to be executed?
Any help is very appreciated...

Thanks,

...Mohammed


--0-1445982234-1219775551=:40968--