WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix uncleaned vif backend devices when frontend does

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix uncleaned vif backend devices when frontend does not finish initialization properly
From: Murillo Bernardes <mfb@xxxxxxxxxx>
Date: Mon, 26 Dec 2005 22:24:11 -0200
Delivery-date: Tue, 27 Dec 2005 00:28:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.1
Today if frontend device does not finish initialization the backend vif still
in dom0 forever. The problems are:

- netif_disconnect only clean up devices with connected status. When a device
 has a problem it will not have that status and will not be cleaned up.
- free_netif_callback must be able to unregister devices not completely
 initialized. Today's code test if it has an irq assigned, if not it just
 return. Before a complete initialization netif does not have an irq number.

Both situations occur today when trying to create more than 3 vif in a single
domU.

This patch fix uncleaned vif backend devices when frontend does not finish
initialization properly.

Comments welcome.

Signed-off-by: Murillo F. Bernardes <mfb@xxxxxxxxxx>

-- 
Murillo Fernandes Bernardes
IBM Linux Technology Center

Attachment: clean_backend_vifs-netback.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix uncleaned vif backend devices when frontend does not finish initialization properly, Murillo Bernardes <=