[Qemu-devel] Re: [PATCH] Release usb devices on shutdown and usb_del command

2010-05-26 Thread Shahar Havivi
On Tue, May 25, 2010 at 10:58:50AM +0200, Gerd Hoffmann wrote: > Date: Tue, 25 May 2010 10:58:50 +0200 > From: Gerd Hoffmann > To: Shahar Havivi > CC: "David S. Ahern" , > Markus Armbruster , qemu-devel@nongnu.org > Subject: Re: [PATCH] Release usb devices on shutdown and usb_del command >

[Qemu-devel] Re: [PATCH] Release usb devices on shutdown and usb_del command

2010-05-25 Thread Gerd Hoffmann
On 05/21/10 19:55, Shahar Havivi wrote: Remove usb_host_device_release and using usb_host_close to handle usb_del command. Gerd, What do you think about the usb_cleanup()? We need a mechanism to handle this for sure. I don't like that usb-specific approach very much though. I think we shou

[Qemu-devel] Re: [PATCH] Release usb devices on shutdown and usb_del command

2010-05-21 Thread Shahar Havivi
Remove usb_host_device_release and using usb_host_close to handle usb_del command. Gerd, What do you think about the usb_cleanup()? If it will be in usb-linux.c we will have to ad atexit to each device, if we usb-bus.c we will have to implement in bsd and stub... Signed-off-by: Shahar Havivi ---