From: George Dunlap Subject: Re: Xen IPC Date: Thu, 6 Aug 2009 15:20:48 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Derek Riley Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I'm afraid the only documentation is the source code itself. Look in tools/xentrace.c, and xen/common/trace.c. The basic idea is that the page is a ring buffer with producer and consumer pointers. Xen always writes a record, then updates the producer; xentrace always reads a record, then updates the consumer. If incrementing the producer would clobber a consumer, then Xen just drops the trace record. Good luck, -George On Thu, Aug 6, 2009 at 3:04 PM, Derek Riley wrote: > > > On Thu, Aug 6, 2009 at 9:01 AM, Derek Riley > wrote: >> >> Thanks for your response.=A0 I am working with the Xen Hypervisor, but I= am >> not familiar with xentrace.=A0 I found some information about it through >> google searches, but I was unable to discover how it uses the shared pag= e >> you mentioned.=A0 Do you have any links to point me in the right directi= on? >> Thanks >> --Derek >> >> On Mon, Aug 3, 2009 at 12:17 PM, George Dunlap >> wrote: >>> >>> Derek, >>> >>> I assume you mean "Xen Hypervisor" (as the kernel would be probably >>> Linux dom0 kernel)? >>> >>> You might look at the xentrace mechanism for using a shared page to >>> pass information out of Xen. =A0You could probably adapt the same idea >>> to pass information into Xen if you needed to. >>> >>> =A0-George >>> >>> On Fri, Jul 31, 2009 at 5:39 PM, Derek >>> Riley wrote: >>> > Hello- >>> > I am working on a project to modify Xen to precisely control the >>> > execution >>> > times of the individual guest domains, and I need some help.=A0 I >>> > considered >>> > modifying the XM python program, but it is not precise or fast enough >>> > for my >>> > application. >>> > >>> > I want to be able to pass short, simple message quickly between an >>> > application-level process and the Xen kernel asynchonously.=A0 I foun= d an >>> > IPC >>> > mechanism designed for the method called netlink >>> > (http://www.linuxjournal.com/article/7356), but I am not sure how to >>> > incorporate it into the Xen kernel.=A0 When I attempt to recompile th= e >>> > kernel >>> > with netlink, I get errors that seem to stem from type issues I am no= t >>> > familiar with. >>> > >>> > 2 questions: >>> > Is it possible to use a mechanism such as netlink with Xen?=A0 If so, >>> > how? >>> > Is there other functionality within Xen that could be used with minim= al >>> > modification to do IPC within domain0? >>> > >>> > Any help/advice would be greatly appreciated.=A0 Thanks! >>> > --Derek >>> > _______________________________________________ >>> > Xen-devel mailing list >>> > Xen-devel@lists.xensource.com >>> > http://lists.xensource.com/xen-devel >>> > >>> > >> > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >