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.
Bug 1871090 - usb device passthrough fails with hostdevice option
Summary: usb device passthrough fails with hostdevice option
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: yduan
URL:
Whiteboard:
Depends On:
Blocks: 1871818
TreeView+ depends on / blocked
 
Reported: 2020-08-21 10:16 UTC by yduan
Modified: 2022-02-24 05:19 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1871818 (view as bug list)
Environment:
Last Closed: 2022-02-21 07:27:23 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description yduan 2020-08-21 10:16:11 UTC
Description of problem:
usb device passthrough fails with hostdevice option

Version-Release number of selected component (if applicable):
Host:
4.18.0-232.el8.x86_64
qemu-kvm-5.1.0-3.module+el8.3.0+7708+740a1315.x86_64
libusbx-1.0.23-3.el8.x86_64
Guest:
4.18.0-232.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Check host usb devices:
# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
    |__ Port 5: Dev 9, If 0, Class=Mass Storage, Driver=usbfs, 480M
    |__ Port 14: Dev 6, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 7, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 8, If 0, Class=Hub, Driver=hub/4p, 480M
# /usr/libexec/qemu-kvm -device usb-host,?
usb-host options:
...
  hostdevice=<str>
...

2.Boot VM with passthroughed usb device using hostdevice option:
/usr/libexec/qemu-kvm \
......
 -device pcie-root-port,id=pcie-root-port-1,port=0x1,addr=0x1.0x1,bus=pcie.0,chassis=2 \
 -device qemu-xhci,id=usbtest,bus=pcie-root-port-1,addr=0x0 \
 -device usb-tablet,id=usb-tablet1,bus=usbtest.0,port=1 \
 -device usb-host,hostdevice=/dev/bus/usb/001/009,id=usbhost,bus=usbtest.0,port=2 \
......

3.Check the usb device in guest:
# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# fdisk -l

Actual results:
Can not find the passthroughed usb device in guest.

Expected results:
usb passthrough should succeed with hostdevice option.

Additional info:

Comment 1 yduan 2020-08-21 10:22:48 UTC
I'll test other devices like kbd/mouse later which need assistance from lab maintainer.

Comment 12 John Ferlan 2021-09-09 13:59:51 UTC
Bulk update: Move RHEL-AV bugs to RHEL9. If necessary to resolve in RHEL8, then clone to the current RHEL8 release.

Comment 14 RHEL Program Management 2022-02-21 07:27:23 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.