From: Keir Fraser Subject: Re: [patch] netfront: unregister net device at backend_changed() if network_connect() failed Date: Tue, 18 Nov 2008 12:49:56 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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 18/11/08 12:21, "Joe Jin" wrote: >> If virtual devices are failing to initialise then a confusing no-mac >> interface is presumably the least of the user's worries? > > However, initialized failed means device was unavailable, but > at system ifconfig -a also show it, might be user ask what is > it? why it disabled? is there anything wrong on my systgem :-) And they'd be right wouldn't they: Yes, something *is* wrong! :-) > So, I think if device failed to initialise we'd better unregister > it. how do you think? 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! One concern I have is that leaving an interface structure allocated but unregistered is not a state we've previously handled in netfront, and could cause bad kernel behaviour if, for example, the netif gets unprobed later. -- Keir