Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IJ4GZ-0002JS-7u for qemu-devel@nongnu.org; Thu, 09 Aug 2007 05:25:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IJ4GW-0002Hf-UX for qemu-devel@nongnu.org; Thu, 09 Aug 2007 05:25:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJ4GV-0002HM-4X for qemu-devel@nongnu.org; Thu, 09 Aug 2007 05:25:11 -0400 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IJ4GU-0004ZD-MH for qemu-devel@nongnu.org; Thu, 09 Aug 2007 05:25:10 -0400 From: Clemens Kolbitsch Date: Thu, 9 Aug 2007 11:25:00 +0200 References: <20070809005657.15251gmx1@mx069.gmx.net> In-Reply-To: <20070809005657.15251gmx1@mx069.gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200708091125.01003.clemens.kol@gmx.at> Subject: [Qemu-devel] Re: SoftMMU address tracing Reply-To: 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 hi! finally found out why it did not work ... the problem was kqemu after all. after compiling qemu with kqemu-support disabled, the address=20 translation/access worked as expected :-) is there a good documentation/technical paper online that could help me=20 understand how address handling is done using kqemu? thanks!! > hi! > aaaaah... i'm going crazy... could someone help me please: > > i'm still (as previously posted on irc) trying to catch when the guest OS > (or a program running in it) accesses a certain virtual address (e.g. rea= ds > from it). > > my guest code is something like: > > ... > unsigned long *p =3D (unsigned long*)0xdeadbeef; > unsigned long l =3D *p; > ... > > now, i know it is compiled into something like this: > > ... > movl $0xdeadbeef,0xfffffff8(%ebp) > mov =A00xfffffff8(%ebp),%eax > mov =A0(%eax),%eax > ... > > what will be translated by qemu into something like > > ... > movl_A0_EAX > ldl_kernel_T0_A0 > movl_EAX_T0 > ... > > I hope that that's correct up to here (i'm not quite sure about the > ldl_kernel as it could also be ldl_user!!). but... as > ldl_(kernel|user)_T0_A0 simply calls the ld-functions in softmmu_header i > inserted a line into these functions that simply dumps out the currently > accessed address (i.e. the parameter ptr) to stdout. > > i run qemu and grep for my "deadbeef" output, but it NEVER occurs!! how c= an > that be?? I've been trying for hours now, could someone please help me > here?? > > don't know if that makes a difference but i've tried using -kernel-kqemu > and also without kqemu. > > any help is greatly appreciated ... thanks!!