From: Keir Fraser Subject: Re: Re: [patch] netfront: unregister net device at backend_changed() if network_connect() failed Date: Thu, 20 Nov 2008 08:05:37 +0000 Message-ID: References: <20081120025310.GA28166@joejin-pc.cn.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20081120025310.GA28166@joejin-pc.cn.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Joe Jin Cc: Xen-Devel List-Id: xen-devel@lists.xenproject.org On 20/11/08 02:53, "Joe Jin" wrote: >> In this case, xend shouldn't be creating front and back directories at all. >> What happens if you make netif's getDeviceDetails() return None for devid if >> type == 'ioemu'? This should cause DevController.py not to set up the >> front/back details and netfront.c will never get triggered. >> > > The change could not stoped kernel insert xen_vnif driver. > From xend.log I did not saw xend have tried to create vnif device at all, > I'm not sure whether virtual device platform "Xen Platform Device" have > preallocated the interface, then kernel try to load the driver? If you really return None for devid from getDeviceDetails then it should be impossible to get further in DevController.py:createDevice(). If you take a look at the implementation it immediately returns in that case. So something odd is going on. Perhaps your new patch does not work. -- Keir