Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
(In reply to Gerd Hoffmann from comment #6)
> please test this scratch build:
> http://brewweb.devel.redhat.com/brew/taskinfo?taskID=9529070
The scratch build fixes the problem at my system. The "ccid_bulk_in_copy_to_guest: returning short (EREMOTEIO)" messages keep being printed by qemu however (I'm not sure if they're significant though).
reproduce the issue:
host info:
3.10.0-303.el7.x86_64
qemu-kvm-rhev-2.3.0-12.el7.x86_64
steps:
1.boot up a rhel7.2 guest with smartcard controller and USB3 controller:
-device nec-usb-xhci -chardev spicevmc,name=smartcard,id=ccid -device usb-ccid -device ccid-card-passthru,chardev=ccid
2.in both host and guest
#yum groupinstall "smart card support"
#yum remove '*openct*'
#service pcscd start
3.plug in the reader before you run remote-viewer on host.
remote-viewer --spice-smartcard spice://$IP:7000
4. open Smart Card Manager application in guest
actual results:
Smart Card Manager application can not find the samrt card in guest.
verify the issue:
host info:
3.10.0-303.el7.x86_64
qemu-kvm-rhev-2.3.0-15.el7.x86_64
steps:
the same as above
actual results:
Smart Card Manager application can find the samrt card in guest.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-2546.html
Description of problem: smart card emulation doesn't work with USB3 (nec-xhci) controller Version-Release number of selected component (if applicable): qemu-kvm-1.5.3-86.el7_1.1.x86_64 How reproducible: always Steps to Reproduce: 1. set up a VM with smartcard controller and USB3 controller: <controller type='usb' index='0' model='nec-xhci'/> <smartcard mode='passthrough' type='spicevmc'> <address type='ccid' controller='0' slot='0'/> </smartcard> 2. connect to the VM (virt-viewer $VM_NAME --spice-smartcard) 3. Actual results: smartcard emulation doesn't work. Examples of what is printed to qemu log with both QEMU_CCID_PASSTHRU_DEBUG and QEMU_CCID_DEBUG set to 4 is below Expected results: smartcard works just as it works with default controller (USB2 or in domain xml, ich9-ehci/ich9-uhci) Additional info: examples of qemu log: -- 8< -- usb-ccid: ccid_handle_bulk_out 65 GetSlotStatus usb-ccid: ccid_reserve_recv_buf: QUEUE: reserve 10 bytes usb-ccid: ccid_calc_status: status = 0 usb-ccid: ccid_bulk_in_copy_to_guest: 10/10 req/act to guest (BULK_IN) usb-ccid: ccid_bulk_in_copy_to_guest: 10/2 req/act to guest (BULK_IN) usb-ccid: ccid_bulk_in_copy_to_guest: returning short (EREMOTEIO) 2 < 10 -- 8< -- usb-ccid: ccid_handle_bulk_out 65 GetSlotStatus usb-ccid: ccid_reserve_recv_buf: QUEUE: reserve 10 bytes usb-ccid: ccid_calc_status: status = 0 usb-ccid: ccid_bulk_in_copy_to_guest: 10/10 req/act to guest (BULK_IN) usb-ccid: ccid_bulk_in_copy_to_guest: 10/10 req/act to guest (BULK_IN) usb-ccid: ccid_handle_bulk_out 65 GetSlotStatus usb-ccid: ccid_reserve_recv_buf: QUEUE: reserve 10 bytes usb-ccid: ccid_calc_status: status = 0 usb-ccid: ccid_bulk_in_copy_to_guest: 10/10 req/act to guest (BULK_IN) usb-ccid: ccid_handle_bulk_out 62 IccPowerOn usb-ccid: ccid_handle_bulk_out: PowerOn: 0 usb-ccid: ccid_write_data_block_atr: atr contains protocol=0 usb-ccid: ccid_reserve_recv_buf: QUEUE: reserve 22 bytes usb-ccid: ccid_calc_status: status = 0 usb-ccid: ccid_bulk_in_copy_to_guest: 259/22 req/act to guest (BULK_IN) usb-ccid: ccid_bulk_in_copy_to_guest: returning short (EREMOTEIO) 22 < 259 usb-ccid: ccid_handle_bulk_out 6f XfrBlock usb-ccid: ccid_on_apdu_from_guest: seq 27, len 14 usb-ccid: usb-ccid: pending answers:usb-ccid: 0:27 usb-ccid: ccid_bulk_in_copy_to_guest: returning short (EREMOTEIO) 0 < 273 usb-ccid: APDU returned to guest 2 (answer seq 27, slot 0) usb-ccid: usb-ccid: pending answers:usb-ccid: empty usb-ccid: ccid_reserve_recv_buf: QUEUE: reserve 12 bytes usb-ccid: ccid_calc_status: status = 0