From: "Daniel P. Berrange" <berrange@redhat.com>
To: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Cc: systemd-devel <systemd-devel@lists.freedesktop.org>,
"Zbigniew Jędrzejewski-Szmek" <zbyszek@in.waw.pl>,
"Michal Sekletar" <msekleta@redhat.com>,
virtualization@lists.linux-foundation.org
Subject: Re: [systemd-devel] udev virtio by-path naming
Date: Wed, 1 Mar 2017 18:44:39 +0000 [thread overview]
Message-ID: <20170301184439.GS10160__27306.5820373178$1488393897$gmane$org@redhat.com> (raw)
In-Reply-To: <f6dfe52a-4332-90fc-a426-712453a8c382@linux.vnet.ibm.com>
On Wed, Mar 01, 2017 at 07:28:46PM +0100, Viktor Mihajlovski wrote:
> On 01.03.2017 16:58, Daniel P. Berrange wrote:
> > given a basic Fedora 25 guest, with a virtio-mmio disk added as per the
> > guide above...
> >
> > looking at device '/devices/platform/a003e00.virtio_mmio/virtio3/block/vda':
> > KERNEL=="vda"
> > SUBSYSTEM=="block"
> > DRIVER==""
> > ATTR{alignment_offset}=="0"
> > ATTR{badblocks}==""
> > ATTR{cache_type}=="write back"
> > ATTR{capability}=="50"
> > ATTR{discard_alignment}=="0"
> > ATTR{ext_range}=="256"
> > ATTR{inflight}==" 0 0"
> > ATTR{range}=="16"
> > ATTR{removable}=="0"
> > ATTR{ro}=="0"
> > ATTR{serial}==""
> > ATTR{size}=="2097152"
> > ATTR{stat}==" 94 0 4208 285 0 0 0
> > 0 0 100 280"
> >
> > looking at parent device '/devices/platform/a003e00.virtio_mmio/virtio3':
> > KERNELS=="virtio3"
> > SUBSYSTEMS=="virtio"
> > DRIVERS=="virtio_blk"
> > ATTRS{device}=="0x0002"
> > ATTRS{features}=="0010101101110000000000000000110000000000000000000000000000
> > 000000"
> > ATTRS{status}=="0x00000007"
> > ATTRS{vendor}=="0x554d4551"
> >
> > looking at parent device '/devices/platform/a003e00.virtio_mmio':
> > KERNELS=="a003e00.virtio_mmio"
> > SUBSYSTEMS=="platform"
> > DRIVERS=="virtio-mmio"
> > ATTRS{driver_override}=="(null)"
> Since I can't do that on my box, would you be so kind to run
> ls -l /dev/disk/by-path
> If it returns ids like
> virtio-pci-a003e00.virtio_mmio[-partn]
> my suggested patch should be OK for ARM in that it will produce ids in
> the format
> platform-a003e00.virtio_mmio[-partn]
Ok, my guest has 4 disks
- sda - virtio-scsi, over virtio-pci transport
- sdb - virtio-scsi, over virtio-mmio transport
- vda - virtio-scsi, over virtio-pci transport
- vdb - virtio-scsi, over virtio-mmio transport
with systemd 231 I get these links
platform-3f000000.pcie-pci-0000:00:01.1-virtio-pci-0000:02:00.0-scsi-0:0:0:0 -> ../../sda
platform-3f000000.pcie-pci-0000:00:01.3-virtio-pci-0000:04:00.0 -> ../../vda
virtio-pci-a003c00.virtio_mmio -> ../../vdb
virtio-pci-a003e00.virtio_mmio-scsi-0:0:0:0 -> ../../sdb
after applying your patch I get these links:
platform-3f000000.pcie-pci-0000:00:01.1-virtio-pci-0000:02:00.0-scsi-0:0:0:0 -> ../../sda
platform-3f000000.pcie-pci-0000:00:01.3-virtio-pci-0000:04:00.0 -> ../../vda
platform-3f000000.pcie-pci-0000:02:00.0-scsi-0:0:0:0 -> ../../sda
platform-3f000000.pcie-pci-0000:04:00.0 -> ../../vda
platform-a003c00.virtio_mmio -> ../../vdb
platform-a003e00.virtio_mmio-scsi-0:0:0:0 -> ../../sdb
virtio-pci-a003c00.virtio_mmio -> ../../vdb
virtio-pci-a003e00.virtio_mmio-scsi-0:0:0:0 -> ../../sdb
So that appears to be working as designed - the 4 backcompat symlinks are
still there, and the new symlinks all live under the platform- prefix
and don't have a bogus 'pci' in the name for mmio links
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
next prev parent reply other threads:[~2017-03-01 18:44 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 ` [systemd-devel] udev virtio by-path naming Lennart Poettering
2017-02-20 16:00 ` 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 [this message]
[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='20170301184439.GS10160__27306.5820373178$1488393897$gmane$org@redhat.com' \
--to=berrange@redhat.com \
--cc=mihajlov@linux.vnet.ibm.com \
--cc=msekleta@redhat.com \
--cc=systemd-devel@lists.freedesktop.org \
--cc=virtualization@lists.linux-foundation.org \
--cc=zbyszek@in.waw.pl \
/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.