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

Re: [Xen-devel] Backend in user space, how is its kernel dev unregistere

To: Markus Armbruster <armbru@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Backend in user space, how is its kernel dev unregistered?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 04 Mar 2009 19:14:41 +0000
Cc:
Delivery-date: Wed, 04 Mar 2009 11:15:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8763ip158c.fsf@xxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acmc+9X3SZJ+GR1wSlyqCjuIe2zB1QAAaH8Z
Thread-topic: [Xen-devel] Backend in user space, how is its kernel dev unregistered?
User-agent: Microsoft-Entourage/12.15.0.081119
On 04/03/2009 19:02, "Markus Armbruster" <armbru@xxxxxxxxxx> wrote:

> Unregistering is the device driver's job: it watches xenstore, and when
> it sees the front end shut down, it calls device_unregister().
> 
> But what if the device driver is in user space?  vfb and vkbd are.  I
> can't see how their kernel devices can ever get unregistered.
> 
> If that is true, any ideas on how to plug the leak?

Backends also tear down when their xenstore directory is removed. I think
that's the job of xenbus_cleanup_devices() in the 2.6.18 tree.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel