Bug 1497984 - RFE: support addressing USB host devices by port
Summary: RFE: support addressing USB host devices by port
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: libvirt
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: lijuan men
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-03 09:40 UTC by Daniel Berrangé
Modified: 2021-01-15 07:43 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-15 07:43:00 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:
areis: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 914883 0 unspecified CLOSED RFE: domain: allow specifying USB devices by their host port 2021-02-22 00:41:40 UTC

Description Daniel Berrangé 2017-10-03 09:40:35 UTC
Description of problem:
Currently when assigning a host USB device to a guest you must specify the bus + device numbers, or using a vendor+product ID pair. Both of these approaches are flawed in their own way:

* Device numbers are not stable. Every time you plug+unplug the device the device number is incremented by one. So effectively the device number is only useful with transient guests - if using in a persistent guest config it will likely fail in the future
* Vendor + product ID pairs are not unique if two or more identical devices are attached.

Fortunately QEMU does now provide an alternative which is to address the host device based on a bus + port number pair. This is guaranteed unique and stable for as long as the device is plugged into the same physical port. This is clearly the most useful addressing method for persistent guests and libvirt should support it

There was a patch for this sent upstream but we dropped the ball & never reviewed or merged it

https://www.redhat.com/archives/libvir-list/2016-July/msg00127.html

Comment 5 RHEL Program Management 2021-01-15 07:43:00 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.