From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Krasnyansky Subject: Re: USB support for smart card reader Date: Tue, 07 Oct 2008 09:40:08 -0700 Message-ID: <48EB90E8.20509@kernel.org> References: <1223056343.11512.5.camel@localhost> <48E8E8DB.6000305@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Gabriel Buades Rubio , "kvm@vger.kernel.org" To: Avi Kivity Return-path: Received: from hera.kernel.org ([140.211.167.34]:36788 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756049AbYJGQkz (ORCPT ); Tue, 7 Oct 2008 12:40:55 -0400 In-Reply-To: <48E8E8DB.6000305@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity wrote: > (copying max) > > Gabriel Buades Rubio wrote: >> When you attach a USB Card Reader from host to guest, but neither KVM-75 >> or KVM-76 works. >> It of course connect the USB device, Windows XP detects it as a Cherry >> XX44 card reader, but it never detects when a smart card is inserted, so >> the application software cannot contact the smart card. >> >> Using KVM-69 the smart card reader was fully functional. >> >> CPU Model: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz >> KVM Version: KVM-75 / KVM-76 >> host kernel: 2.6.24-19 i386 (Ubuntu) >> guest: Windows XP SP2 >> command line: kvm -hda wxp-b.img -net nic,model=virtio -net vde -m 256 >> -usb -usbdevice tablet -localtime -fda floppy -boot a -no-acpi >> -usbdevice 'host:auto:*.*:046a:002d' >> Using -no-kvm-irqchip: cannot read smart card >> Using -no-kvm-pit: cannot read smart card >> Using -no-kvm: cannot read smart card Avi, Thanx for the CC. Gabriel, Can you please send me the output of (on the host). lsusb -v -d 046a:002d Aslo if you could uncomment DEBUG in kvm-userspace/qemu/usb-linux.c kvm-userspace/qemu/hw/usb-uhci.c recompile and reproduce the scenario that'd be great. You'd have to redirect qemu stdout & stderr to some file. The file will be huge so you'd want to either send it to me in private or put it on some web server or something. Thanx Max