From: Bastian Blank Subject: Re: [PATCH 5/5] xen: Add xenbusd device driver Date: Mon, 28 Nov 2011 20:42:24 +0100 Message-ID: <20111128194224.GA9766@wavehammer.waldi.eu.org> References: <1322431628-21760-1-git-send-email-waldi@debian.org> <1322431628-21760-6-git-send-email-waldi@debian.org> <20111128183723.GD21369@andromeda.dapyr.net> <20111128185253.GA8846@wavehammer.waldi.eu.org> <4ED3DD13.3050102@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4ED3DD13.3050102@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel De Graaf Cc: Konrad Rzeszutek Wilk , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Nov 28, 2011 at 02:12:19PM -0500, Daniel De Graaf wrote: > On 11/28/2011 01:52 PM, Bastian Blank wrote: > > On Mon, Nov 28, 2011 at 02:37:23PM -0400, Konrad Rzeszutek Wilk wrote: > >> On Sun, Nov 27, 2011 at 11:07:08PM +0100, Bastian Blank wrote: > >>> + if (!xen_initial_domain()) > >> > >> With the disgregated domains (and the patches that Daniel posted), I > >> think this needs to relax a bit. Perhaps just make it 'xen_domain'? > > What we want is for this device to appear any time xenstored is in > the local domain. In xenbus_probe, I use the xen_start_info structure > to determine this - xen_start_info->store_evtchn is nonzero if there > is a remote xenstored. Ah. I missed this change. So the best way to do this is to register the device from xenstored_local_init. Bastian -- Prepare for tomorrow -- get ready. -- Edith Keeler, "The City On the Edge of Forever", stardate unknown