Received: from eggs.gnu.org ([140.186.70.92]:53220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqmR3-0006Rf-Il for qemu-devel@nongnu.org; Tue, 09 Aug 2011 09:33:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqmQx-0007Ao-38 for qemu-devel@nongnu.org; Tue, 09 Aug 2011 09:33:33 -0400 Received: from nm3-vm0.bullet.mail.in.yahoo.com ([121.101.151.212]:20981) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QqmQw-00078s-Dn for qemu-devel@nongnu.org; Tue, 09 Aug 2011 09:33:27 -0400 Message-ID: <1312889391.10167.YahooMailNeo@web95611.mail.in.yahoo.com> Date: Tue, 9 Aug 2011 16:59:51 +0530 (IST) From: Amit Roy MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1313453426-1312889391=:10167" Subject: [Qemu-devel] Regarding guest physical addresses for multithreaded program Reply-To: Amit Roy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" --0-1313453426-1312889391=:10167 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=0AI have recently started using Qemu.=0A=0A=0AI have a very specific= requirement which has been discussed previously at length. I want to captu= re the guest physical address trace of multithreaded programs (x86_64 arch)= . After going through the archives, I have been able to record the guest vi= rtual memory trace (by inserting hooks in i386/translate.c ). However, I wa= s wondering if there is an easy way to convert these guest virtual addresse= s to the guest physical address.=0A=0AI understand that I have to modify th= e code somewhere between=A0 the translations guest_virtual->guest_host->hos= t_virtual. However as far as I could understand, the guest_virtual->guest_h= ost is often bypassed=A0 if the base address is already present.=0A=0ACan y= ou please suggest ways to retrieve the guest physical addresses of all the = memory accesses? For example, force=A0 Qemu to do the above translation all= the time?=0A=0AOn a similar vein, I was wondering what is the use of cpu_g= et_phys_page_debug() function in=A0 cpu-all.h ? Can this be used for my pur= pose?=0A=0AAny pointer would be greatly appreciated.=0A=0A=A0=0A=0AThanks &= Regards=A0 =0AAmit =0A --0-1313453426-1312889391=:10167 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
=
I have recently started using Qemu.

I have a very specific re= quirement which has been discussed previously at length. I want to capture = the guest physical address trace of multithreaded programs (x86_64 arch). <= /span>After going through the archives, I have been able to record th= e guest virtual memory trace (by inserting hooks in i386/translate.c ). How= ever, I was wondering if there is an easy way to convert these guest virtua= l addresses to the guest physical address.

I understand that I have to modify the code somewhere be= tween  the translations guest_virtual->guest_host->host_virtual.= However as far as I could understand, the guest_virtual->guest_host is often bypassed&n= bsp; if the base address is already present.

Can you please suggest ways to retrieve the guest phys= ical addresses of all the memory accesses? For example, force  Qemu to= do the above translation all the time?

<= /div>
On a similar vein, I was wondering what is the use of cpu_g= et_phys_page_debug() function in  cpu-all.h ? Can this be used for my = purpose?

Any pointer wou= ld be greatly appreciated.
 
Thanks & Regards&n= bsp;
Amit
--0-1313453426-1312889391=:10167--