From: Wei Liu Subject: Re: grant tables and driver handshaking Date: Thu, 11 Jun 2015 17:24:51 +0100 Message-ID: <20150611162451.GK14606@zion.uk.xensource.com> References: <1429117327-6845-1-git-send-email-lindaj@jma3.com> <556F1C21.2010000@jma3.com> <5578E82B.1010601@jma3.com> <20150611104349.GI14606@zion.uk.xensource.com> <55797FC8.8050806@jma3.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z35Hl-0005r8-AK for xen-devel@lists.xenproject.org; Thu, 11 Jun 2015 16:24:57 +0000 Content-Disposition: inline In-Reply-To: <55797FC8.8050806@jma3.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Linda Cc: julien.grall@citrix.com, xen-devel@lists.xenproject.org, Wei Liu , lars.kurth.xen@gmail.com List-Id: xen-devel@lists.xenproject.org On Thu, Jun 11, 2015 at 06:32:08AM -0600, Linda wrote: > On 6/11/2015 4:43 AM, Wei Liu wrote: > >On Wed, Jun 10, 2015 at 07:45:15PM -0600, Linda wrote: > >>Hello all, > >> I will be writing a xen front and back-end pair for a 9p transport. I > >>have two areas where I'm still a little more muddled than I'd like to be. > >> Can anyone please recommend a good article on either grant tables or the > >>handshaking between the front and back-end drivers, or both? > >The handshake protocol needs to be designed by you. Generally speaking > >you need to at least advertise the event channel and grant table > >references. You also need to advertise other information that you > >identify as part of the handshake process. > OK. That explains half of my muddle. > > Here's the other half. The wiki article on xenbus taks about the front-end > registering with xenbus, before anything else happens. But in blkback, it > looks like it too has to do some kind of setup with xenbus, too. > Not sure if you still have questions in this area or not. If so please reply and preferable with the specific code snippet you find confusing. > Since the backend is in DOM0, and is around longer than the DOMUs, this > happens first. It's that interaction that I'd like a little more text on. > If it exists. I'm not completely sure what you're referring to. That probably only exists in code. The interaction between backend and frontend is very driver specific. Wei. > > > >There is a wiki page on grant table > > > >http://wiki.xenproject.org/wiki/Grant_Table > Thanks. > > > >Wei. > > > >> I have looked at the code, but could use more verbiage. > >>Thanks. > >> > >>Linda