From: Tej Subject: Re: Root filesystem access from Xen Hypervisor Date: Fri, 14 Nov 2008 23:03:19 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 11/14/08, George Dunlap wrote: > If you want to export data out of the hypervisor, the easiest thing to > do is set up a shared memory mechanism. Look at xen/common/trace.c > and tools/xentrace/xentrace.c for one simple xen-to-userspace example. > > Hmm... if you want to reuse as much of the interface as possible, > you'll probably need to make a Linux kernel module that implements > /proc/gcov-xen. The hypervisor can write usage data to the shared > page(s), and the kernel module can read it, interpret it, and make the > /proc files based on it. i am also thinking on same line. > > For a sample of how to use xen-to-kernel shared memory, you can look > at xenoprofile; but be warned that it's suffering some bitrot. thanks for nice pointers > > Let me know how you fare -- it seems like an interesting project. sure > > -George thanks -tej > > On Fri, Nov 14, 2008 at 12:15 PM, Tej wrote: >> On 11/14/08, George Dunlap wrote: >>> /proc is owned by the Linux Kernel; Xen has no filesystem code in it. >>> >>> What is it you're trying to do? >> >> i am trying to port the gcov for XEN HYpervisor. I could able to >> create profiling info but i could not able to populate filesystem for >> profiling purpose. >> >> >>> >>> -George >>> >>> On Fri, Nov 14, 2008 at 11:45 AM, Tej wrote: >>>> Can we Access the root filesystem from Xen Hypervisor Code. >>>> e.g creating dir at /proc >>>> >>>> >>>> Any pointers will be useful. >>>> >>>> >>>> thanks >>>> -tej >>>> >>>> _______________________________________________ >>>> Xen-devel mailing list >>>> Xen-devel@lists.xensource.com >>>> http://lists.xensource.com/xen-devel >>>> >>> >> >