From: Keir Fraser Subject: Re: Backend in user space, how is its kernel dev unregistered? Date: Wed, 04 Mar 2009 19:14:41 +0000 Message-ID: References: <8763ip158c.fsf@pike.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8763ip158c.fsf@pike.pond.sub.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Markus Armbruster , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 04/03/2009 19:02, "Markus Armbruster" 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