WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Logging Access to HDD

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Logging Access to HDD
From: Sebastian Biedermann <biedermann@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Apr 2011 11:44:08 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 19 Apr 2011 02:45:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01CC8B2B@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4DAD5296.70204@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01CC8B2B@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9
Am 19.04.2011 11:35, schrieb James Harper:
Dear List,

I´m working in research and I tought this list could be
a good adress for my questions.

I want to log the disk accesses of the virtual hvm instances running in Xen.
That means for the start I want to log the write querys of a running
domU instance in the dom0 instance.

So I´m trying to modify the Xen 3.2.1 source code,
but actually I was not able to find a good entry point to do this.

For now, I want to log the disk accesses of a running windows 7 domU
instance.
The best what could happenis that I could see even the source and target
of a hdd write query.

Does anyone have an idea how I could do this on a good way?
Which Xen source file / function should I modify? Where is the best
entry point to do this?
HVM access can either be emulated PCI IDE, or PV. For the emulated access you 
would hook into qemu, I think. For PV access you would need to hook into 
whatever block device backend you are using.

Do you just want to count reads and writes, or do you want to log every single 
byte read/written?

James

I dont need to log every single byte, it would be enough to know which file is accessed by the domU inside its image.
So when I use HVM I need to modify qemu and not the xen source?

thanks

--
Sebastian


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>