All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lennart Poettering <lennart@poettering.net>
To: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Cc: systemd-devel@lists.freedesktop.org,
	virtualization@lists.linux-foundation.org
Subject: Re: [systemd-devel] udev virtio by-path naming
Date: Mon, 20 Feb 2017 16:14:32 +0100	[thread overview]
Message-ID: <20170220151432.GA15888__5722.87658365003$1487967495$gmane$org@gardel-login> (raw)
In-Reply-To: <de55b0f4-4582-cf06-4b0d-12c2282406a8@linux.vnet.ibm.com>

On Mon, 20.02.17 15:34, Viktor Mihajlovski (mihajlov@linux.vnet.ibm.com) wrote:

> But then, I find this naming scheme somewhat weird.
> A virtio disk shows up as a regular PCI function on the PCI
> bus side by side with other (non-virtio) devices. The naming otoh
> suggests that virtio-pci is a subsystem of its own, which is simply
> incorrect from a by-path perspective.
> 
> Using just the plain PCI path id is actually sufficient to identify
> a virtio disk by its path. This would be in line with virtio
> network interface path names which use the plain PCI naming.
> 
> 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.
> Opinions?

So, to make this clear, we in systemd are kinda interested in
splitting out these virtio helpers into some external project
maintained by virtio peopl. We as systemd/udev maintainers have very
little understanding of the underlying technology, so we can't really
be any good maintainers of this, and we can't really comment on this
stuff, in particular when it gets more exotic, like the CCW stuff.

Even better would be if the kernel would do the naming on its own, and
maybe just provide us with a sysattr on the relevant devices that we
can read to determine the path from, so that we don#t have to maintain
this at all in userspace. That way, the driver folks on the kernel
side can use any naming they like without ever having to patch this
into systemd or udev.

This is similar to SCSI stuff and all things like that: the more
exotic it gets the less place this really has in systemd, we are not
the right maintainers for this. And given that this is all nicely
pluggable (you can ship your own udev extensions externally very
easily), there's really no reason for this to be in systemd/udev.

Anyway, I fear you're going to have a hard time involving us in a
technical discussions about the issue you are raising, since quite
frankly we have no clue about virtio...

Lennart

-- 
Lennart Poettering, Red Hat

       reply	other threads:[~2017-02-20 15:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <de55b0f4-4582-cf06-4b0d-12c2282406a8@linux.vnet.ibm.com>
2017-02-20 15:14 ` Lennart Poettering [this message]
2017-02-20 16:00 ` udev virtio by-path naming Cornelia Huck
2017-02-24  9:56   ` Viktor Mihajlovski
2017-02-27 11:22     ` Michal Sekletar
     [not found]     ` <CALVzVJZhZTNbZp1EB9cT82YxUnbUZZ+ZPo7Od8CWz5C3faN1AA@mail.gmail.com>
2017-02-28  8:47       ` Viktor Mihajlovski
2017-03-01  3:30         ` [systemd-devel] " Zbigniew Jędrzejewski-Szmek
     [not found]         ` <20170301033007.GG29552@in.waw.pl>
2017-03-01 15:02           ` Viktor Mihajlovski
     [not found]           ` <7de4f313-d3a6-b50d-4e53-3b01d6f0f2a0@linux.vnet.ibm.com>
2017-03-01 15:58             ` Daniel P. Berrange
2017-03-01 16:24               ` Daniel P. Berrange
2017-03-01 18:28               ` Viktor Mihajlovski
     [not found]               ` <f6dfe52a-4332-90fc-a426-712453a8c382@linux.vnet.ibm.com>
2017-03-01 18:44                 ` Daniel P. Berrange
     [not found]                 ` <20170301184439.GS10160@redhat.com>
2017-03-01 19:23                   ` Viktor Mihajlovski
     [not found]                   ` <79e0b5c0-0860-81b2-cd4d-6efaca924bcc@linux.vnet.ibm.com>
2017-03-01 20:02                     ` Viktor Mihajlovski
     [not found] ` <20170220151432.GA15888@gardel-login>
2017-02-28 19:28   ` Daniel P. Berrange
     [not found]   ` <20170228192851.GC10067@redhat.com>
2017-02-28 19:39     ` Lennart Poettering
2017-03-01  3:43       ` Zbigniew Jędrzejewski-Szmek
     [not found]       ` <20170301034321.GH29552@in.waw.pl>
2017-03-01  3:51         ` Andrei Borzenkov
     [not found]         ` <559a5978-6957-49cd-2ec7-79897732be95@gmail.com>
2017-03-01  4:27           ` Zbigniew Jędrzejewski-Szmek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='20170220151432.GA15888__5722.87658365003$1487967495$gmane$org@gardel-login' \
    --to=lennart@poettering.net \
    --cc=mihajlov@linux.vnet.ibm.com \
    --cc=systemd-devel@lists.freedesktop.org \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.