Skip to contentSkip to conversation

USB support for smart card reader

DISCUSSION Gabriel Buades Rubio 3 participants 3 messages Oct 3, 2008 – Oct 7, 2008 KVM

lore
Share & tools
lore
#0 lore raw

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

Thank you very much

#1 lore raw

(copying max)

Quoted 6 lines · Gabriel Buades Rubio

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.

Quoted 8 lines

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

Max, looks like a usb regression. Any ideas?

Signature · 1 line
error compiling committee.c: too many arguments to function
#2 lore raw
Quoted 21 lines · Avi Kivity

(copying max)

Quoted 18 lines · Gabriel Buades Rubio

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