> -----Original Message-----
> From: Gerd Hoffmann [mailto:kra...@redhat.com]
> Sent: Thursday, August 16, 2018 6:46 PM
> To: linzhecheng <linzhech...@huawei.com>
> Cc: qemu-devel@nongnu.org; wangxin (U) <wangxinxin.w...@huawei.com>
> Subject: Re: [PATCH] usb-host: insert usb device into hostdevs to be scaned
> 
> On Thu, Aug 16, 2018 at 05:43:56PM +0800, linzhecheng wrote:
> > According to the comment of usb_host_post_load_bh, after removing the
> > usb device passed through, we will kick host to scan it again, but the
> > emulated usb device is not added to global list hostdevs, so it can never be
> discovered then.
> > So just do it before usb_host_auto_check. What's more, it's futile to
> > walk devs in usb_host_auto_check periodically if hostdevs is empty, so let's
> delete the usb_auto_timer.
> 
> Hmm, needs_autoscan is a fixed property of the device (depending on
> configuration), it should not be switched on and off.
> 
> What problem you are trying to solve?
I'm trying to live migrate a vm to local host, but found the host-usb device 
was removed then.
Is it possible not to remove it after migrating vm?
> 
> cheers,
>   Gerd


Reply via email to