|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCH 07/14] usb-linux: If opening a device fails remove it from our filter list |
Date: | Wed, 01 Jun 2011 14:32:54 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110419 Red Hat/3.1.10-1.el6_0 Thunderbird/3.1.10 |
On 05/31/11 11:35, Hans de Goede wrote:
So that we don't retry to open it every 2 seconds flooding stderr with error messages.
The polling here is done intentionally, so the devices catched by the filter show up in the guest automagically as soon as they are plugged in. Just zapping the filter on failure isn't the right thing to do here.
We could try to do something more clever than polling sysfs every two seconds though, such using inotify to watch /sys/bus/usb/devices for new devices poping up.
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |