From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkSeL-0003DR-Gf for qemu-devel@nongnu.org; Thu, 15 Sep 2016 05:08:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkSeF-0003ql-Cg for qemu-devel@nongnu.org; Thu, 15 Sep 2016 05:08:04 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkSeF-0003hR-6M for qemu-devel@nongnu.org; Thu, 15 Sep 2016 05:07:59 -0400 Received: by mail-wm0-f67.google.com with SMTP id 133so4090668wmq.2 for ; Thu, 15 Sep 2016 02:07:38 -0700 (PDT) Date: Thu, 15 Sep 2016 10:06:34 +0100 From: Stefan Hajnoczi Message-ID: <20160915090634.GA4214@stefanha-x1.localdomain> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Adding a custom monitoring device to virt machine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nassim Corteggiani Cc: "qemu-devel@nongnu.org" --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 23, 2016 at 07:31:53AM +0000, Nassim Corteggiani wrote: > Hi all, >=20 >=20 > This is the first time I am playing with QEmu. >=20 >=20 > I made a custom qemu device in oder to monitor all memory accesses (sdram= , flash, peripherals, gpio, ...). >=20 >=20 > The device is parent of TYPE_SYS_BUS_DEVICE and implements a MemoryRegion= Ops with read/write functions. >=20 >=20 > The device is part of virt machine, so I called my device contructor from= virt.c (fct machvirt_init line 1256). >=20 > The constructor set the mmio device range from 0 to RAMLIMIT_BYTES. >=20 >=20 > The device is well initialized but read/write functions are never called.= =2E. >=20 >=20 > Did I miss something ? >=20 >=20 > If I want to create a dynamically allocated device that can be used by al= l QEmu machine without adding the device constructor for each machine, how = can I process ? That's probably not the way to go about monitoring memory accesses. What are you trying to do? Stefan --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJX2mSaAAoJEJykq7OBq3PIZxQIAJ8xL4wUwwolqq4evijVcLSG 054MbIF3Er9Xyl6NPBI5Cg18T43fXcNIvC3siO0gR+/wKFWGM3u7zhs7F8AOB6I+ 7ofttKNZWslsK5OpoF3vVX9OFr+XjJW4xSETmL6tOUmcgvp+jgWB4AZAhh52xsYM LonK7SuB1sN109BqBZp6UDL20oLSHw6vB3v/TU9ShRPKAFgpYjBUp3cGyGCc/eaN KODKZY05cdIwMmimZDT6qqiGu5zoZvAfrQD8QVivaJ/EZlA3rFAGux5XgT4TK58+ z02dmUvOgmTaVAxPMePl6B2CBMpQx/Z3ng1/d/AMhPrPy3wd5aVKHEXSHmTxS4A= =+dm5 -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--