Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace bus/slot/function with full PCI paths #8681

Open
DemiMarie opened this issue Nov 3, 2023 · 3 comments
Open

Replace bus/slot/function with full PCI paths #8681

DemiMarie opened this issue Nov 3, 2023 · 3 comments
Labels
C: core P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: enhancement Type: enhancement. A new feature that does not yet exist or improvement of existing functionality.

Comments

@DemiMarie
Copy link

How to file a helpful issue

The problem you're addressing (if any)

PCI devices are currently assigned via bus/slot/function, which is not a stable identifier.

The solution you'd like

Use PCI paths instead, which are much more likely to be stable.

The value to a user, and who that user might be

Users will be less likely to have problems with PCI device renumbering.

@DemiMarie DemiMarie added T: enhancement Type: enhancement. A new feature that does not yet exist or improvement of existing functionality. P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. labels Nov 3, 2023
@jamke
Copy link

jamke commented Nov 3, 2023

We had several discussions on this topic:

#7792
#7883

@marmarek
Copy link
Member

marmarek commented Nov 3, 2023

Use PCI paths instead, which are much more likely to be stable.

Please be more specific what exactly you mean. sysfs path of the device? Can you give a specific example (that can be used as a device identifier, so meets qrexec service argument allowed character set)?

@DemiMarie
Copy link
Author

Use PCI paths instead, which are much more likely to be stable.

Please be more specific what exactly you mean. sysfs path of the device?

Physical path to the device, as defined by the sequence of PCI switches that must be traversed. I think this corresponds to sysfs path.

Can you give a specific example (that can be used as a device identifier, so meets qrexec service argument allowed character set)?

One can turn the sysfs path into an identifier by escaping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: core P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: enhancement Type: enhancement. A new feature that does not yet exist or improvement of existing functionality.
Projects
None yet
Development

No branches or pull requests

4 participants