From: Keir Fraser Subject: Re: Re: [patch] netfront: unregister net device at backend_changed() if network_connect() failed Date: Wed, 19 Nov 2008 08:54:37 +0000 Message-ID: References: <20081119021337.GA16531@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: <20081119021337.GA16531@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 19/11/08 02:13, "Joe Jin" wrote: >> Have you actually seen this problem occur, in stress tests or elsewhere? Or >> is this just a 'nice to have'? If the former I'd rather fix the bug! >> > > At vm config file set vif type to ioemu and booting guest with pv driver, > always saw the interface, unregister the device when network_connect(), > I just saw one nic with 8139 driver. I think failure to connect in frontend should always be a bug condition. 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. Just need to make sure ioemu's netdevice still works. Including across save/restore. :-) -- Keir