From: Daniel Stodden Subject: Re: XEN special debug information Date: Tue, 18 Mar 2008 01:21:45 +0100 Message-ID: <1205799705.2051.18.camel@thinkpad.localdomain> References: <20080317221802.50360@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20080317221802.50360@gmx.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Lil Evil Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, 2008-03-17 at 23:18 +0100, Lil Evil wrote: > Hi, >=20 > I ve been trying to get some information out of xen for a while now. > unfortunately, I failed so far. > I want to do some virtual hard disk write analysis and therefor would n= eed xen to return me the LBA of the sector written. > If been looking into the source code blkback/blkfront, but I have diffi= culties identifying the write function. > Could anybody kindly point me into the right direction? blkif is rather well documented in xen/include/public/io/blkif.h Did you find this this already? It's comparatively simple. A request message carries a number of segments, each segment a range of sectors (up to 8 x 512 =3D=3D 4096, i.e= . a page size, therefore the format). The type of operation is either read or write, encoded in the request. Daniel --=20 Daniel Stodden LRR - Lehrstuhl f=C3=BCr Rechnertechnik und Rechnerorganisation Institut f=C3=BCr Informatik der TU M=C3=BCnchen D-85748 Garc= hing http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B