[systemd-devel] udev virtio by-path naming
mihajlov at linux.vnet.ibm.com
Wed Mar 1 15:02:53 UTC 2017
On 01.03.2017 04:30, Zbigniew Jędrzejewski-Szmek wrote:
> On Tue, Feb 28, 2017 at 09:47:42AM +0100, Viktor Mihajlovski wrote:
>>>>>> One could argue about back-level compatibility, but virtio by-path
>>>>>> naming has changed multiple times. We have seen virtio-pci-virtio<n>
>>>>>> (not predictable), pci-<busid> and virtio-pci-<busid> already. It
>>>>>> might be a good time now to settle on a common approach for all
>>>>>> virtio types.
>>>>>> For the reasons above, I'd vote for <subsystem>-<busid>, which
>>>>>> would work for PCI and CCW, not sure about ARM MMIO though.
> It seems that there's agreement that <subsystem>-<busid> is the right
> Ideally we would keep the virtio-pci-<busid> links as they appear
> right now, for backwards compatibility, just for the pci devices, and
> mark them as deprecated (dunno where, maybe just in NEWS), and add the
> code to make the links.
> I haven't looked at the code, maybe we just do this with the right
> udev rule, and also stick the deprecation comment there?
I've posted a github pull request , and would appreciate review
feedback. As I am lacking an ARM setup, it would also be nice if someone
with ARM skills could have a look as well.
If wanted, I can take a stab at virtio-mmio, but would need the output
of udevadm -a /dev/vda from a virtio-mmio system.
Mit freundlichen Grüßen/Kind Regards
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martina Köderitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
More information about the systemd-devel