From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: XenStore as a data transfer path? Date: Wed, 25 Jul 2012 14:44:29 -0400 Message-ID: <20120725184429.GC16360@phenom.dumpdata.com> References: <6035A0D088A63A46850C3988ED045A4B299B8A95@BITCOM1.int.sbss.com.au> <1E8F546AD8E64BF1B2D68D24F3BD4050@LarryE6400> <6035A0D088A63A46850C3988ED045A4B299B8F9D@BITCOM1.int.sbss.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Larry White Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Sat, Jul 21, 2012 at 12:59:31PM -0500, Larry White wrote: > Hi Konrad, > > >On Tue, Jul 17, 2012 at 11:22:28PM -0500, LarryWhite wrote: > >I am new to Xen and want to provide simple communication between my DomU > >and > >Dom0 environments. I just need to be able to pass a few bytes of > >information back and forth between DomU and Dom0 while using some form of > >event management to know when an update occurs so I can act on it. At > >first, it appeared that using XenBus and XenStore might be the right > >solution for this. However, after looking over the documentation, it seems > >that XenBus and XenStore should only be used in a PVM Xen configuration, > >not > >a HVM model like mine. Is this true? > > >>It can be done in HVM. > > >What would be the best way to accomplish this? Is there any sample code > >which demonstrates this for a HVM Xen environment? > > >>libvchan is your best bet. > > Have been looking at libvchan as you suggested. An additional bit of > information that I left out on my original post was that I would like to do > this in a "one to many" environment. In other words, I want to support data > transfer from dom0 to a number of different domU's. Would an approach such > as libvchan allow for this or would I need a separate process in dom0 for > each of the different domU channels? I was really hoping to have a single > process running in dom0 to manage this. You would need seperate rings for each domU. Whether you want to implement this in a single process or multi-thread the process - or just use one process and block on the event (signal) to receive an interrupt when data appears - that is up to you. > > Thanks, > Larry > >