From: Rolf Neugebauer Subject: Re: xenstore documentation Date: Tue, 04 Oct 2005 15:42:26 +0100 Message-ID: <1128436946.29007.6.camel@wyvis.research.intel-research.net> References: <1128429737.30221.12.camel@localhost.localdomain> <5d7aca950510040555k19e8fb71kb74deff11c344451@mail.gmail.com> <1128432335.30221.33.camel@localhost.localdomain> Reply-To: rolf.neugebauer@intel.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1128432335.30221.33.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: harry Cc: Rami Rosen , NAHieu , Jacob Gorm Hansen , xen-devel@lists.xensource.com, rolf.neugebauer@intel.com List-Id: xen-devel@lists.xenproject.org On Tue, 2005-10-04 at 14:25, harry wrote: > On Tue, 2005-10-04 at 21:55 +0900, NAHieu wrote: > > On 10/4/05, harry wrote: > > > If you look at writeDetails in > > > tools/python/xen/xend/server/DevController.py you'll see the > > > transactions which cause the back and front ends to get probed. > > > > > > The transactions contain extra fields as provided by the derived class > > > specific to the device type and are written into the store in the > > > locations constructed in the frontendPath and backendPath functions in > > > DevController.py. These paths contain the device id string as specified > > > when you registered your xenbus drivers. > > > > > > > Does that mean if I want to write a new split device, I must patch > > xend to let it aware of the new type of device? > > Yes. You have to add a new class in python/xen/xend/server (see > blkif.py as an example) and then hook this class into xend in > XendDomainInfo.py and xm/create.py to get the config parameters passed > correctly. or no ;) depending on what you want to do. so for example if you only ever have one backend in the system then you "could" store that under a well known name in the store and the frontends can simply read that. you'll also need a place for the BE to watch for FE updates in a similar fashion. however this pretty adhoc and breaks a few conventions and might not work with well save/restore etc.but for prototyping it is sufficient and doesn't require xend mods. if you want the split device be general available you'd probably have to mod xend. Rolf > > > > I have the same problem here: I am struggling on the first simple > > backend/frontend driver, and I cannot figure out why probe functions > > in the frontend is not called. > > Well, I have managed to get my probe functions called successfully :-) > But I'm struggling with creating a mechanism which correctly constructs > and tears-down the shared memory page in all the following scenarios: > > FE module load/unload > BE module load/unload > device hot plug/remove > domain suspend/resume > domain start/stop > > If someone with superior understanding would like to document a complete > solution that would be really helpful. > > Harry. > > > > Jacob, would you please share some of your experiences if you make > > your code run successfully? > > > > Many thanks. > > Hieu. > > > > _______________________________________________ > > 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