[Spice-devel] Native USB redirection does not work - (remote-viewer) did not claim interface 0 before use

Sigbjorn Lie sigbjorn at nixtra.com
Tue Dec 4 09:00:46 PST 2012




On Tue, December 4, 2012 14:27, Hans de Goede wrote:
> Hi,
>
>
> On 12/03/2012 09:40 PM, Sigbjorn Lie wrote:
>
>> On 12/02/2012 11:58 AM, Hans de Goede wrote:
>>
>>> Hi,
>>>
>>>
>>> On 11/30/2012 03:40 PM, Sigbjorn Lie wrote:
>>>
>>>> Hi,
>>>>
>>>>
>>>> I have disabled pcscd with chkconfig and rebooted. After the reboot I attempted to connect
>>>> to the VDI and share my smart card reader again. The same issue occured.
>>>>
>>>
>>>
>>> ifdhandler is still messing with the reader while spice tries to use it, I would have
>>> expected the stopping of pcscd to also stop ifdhandler, but it seems I was wrong. Please also
>>> disable ifdhandler, I suspect that will solve your issue.
>>>
>>>
>>
>> And that worked just fine.  I can forward my smart card reader to the Win 7 VDI now. Thank you.
>>
>>
>
> Good!
>
>
>> Would you consider this to be a bug?
>>
>>
>
> Yes, I think what you are seeing is in essence the same as:
> https://bugzilla.redhat.com/show_bug.cgi?id=820205
>
>
> With this libusb bug fixed, and assuming that ifdhandler properly claims the device, you should
> get a "device is busy" instead when you try to redirect the device when it is used by ifdhandler.
>
> I'm afraid that unlike devices which use kernel drivers, there is no reliable way to take-over
> the device from a userspace driver like ifdhandler, so the busy error is the best we can do.
>
> Note that for smartcards the smartcard channel is a much better solution though, as it allows
> use of the card in both the client and guest simultaneously.
>

I downloaded and tested the updated rpm as mentioned in the bugzilla report and it worked. I got a
"device is busy" message from the remote-viewer instead of a lot of errors on the log.

I will look at the smartcard channel option when it appears in RHEV. Do you know when this will
happen?

Thanks.


Regards,
Siggi





More information about the Spice-devel mailing list