RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 583064 - Virtio Net/Disk block devices get wrong parent in node device info
Summary: Virtio Net/Disk block devices get wrong parent in node device info
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: beta
: 6.1
Assignee: Michael S. Tsirkin
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 668779 (view as bug list)
Depends On:
Blocks: 570130 580954
TreeView+ depends on / blocked
 
Reported: 2010-04-16 15:03 UTC by Daniel Berrangé
Modified: 2013-01-09 22:27 UTC (History)
9 users (show)

Fixed In Version: kernel-2.6.32-112.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 570130
Environment:
Last Closed: 2011-05-23 20:20:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
guest dumpxml (3.41 KB, text/plain)
2011-02-15 08:53 UTC, Shirley Zhou
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0542 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 6.1 kernel security, bug fix and enhancement update 2011-05-19 11:58:07 UTC

Comment 1 Daniel Berrangé 2010-04-16 15:04:49 UTC
This libvirt bug actually appears to be a result of the virtio disk/net drivers not providing correct links in sysfs, not associating to the PCI device.

Comment 2 Daniel Berrangé 2010-04-16 15:11:38 UTC
In this example, eth2 is a virtio device and eth3 is an e1000 device, both are PCI devices.

The virtio device (eth2) does not link to its PCI device:

[root@dhcp-0-232 net]# cd /sys/class/net
[root@dhcp-0-232 net]# ls -al eth2 eth3
lrwxrwxrwx. 1 root root 0 Apr 16 16:06 eth2 -> ../../devices/virtio-pci/virtio2/net/eth2
lrwxrwxrwx. 1 root root 0 Apr 16 16:06 eth3 -> ../../devices/pci0000:00/0000:00:06.0/net/eth3
[root@dhcp-0-232 net]# ls -al eth2/device eth3/device
lrwxrwxrwx. 1 root root 0 Apr 16 16:09 eth2/device -> ../../../virtio2
lrwxrwxrwx. 1 root root 0 Apr 16 16:09 eth3/device -> ../../../0000:00:06.0

Comment 4 RHEL Program Management 2010-04-16 16:08:05 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 5 RHEL Program Management 2010-07-15 14:00:11 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 8 RHEL Program Management 2010-11-16 09:11:06 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 10 Michael S. Tsirkin 2011-01-18 10:38:34 UTC
*** Bug 668779 has been marked as a duplicate of this bug. ***

Comment 14 Aristeu Rozanski 2011-02-03 16:19:49 UTC
Patch(es) available on kernel-2.6.32-112.el6

Comment 17 Shirley Zhou 2011-02-15 08:52:20 UTC
Reproduce this bug with kernel-2.6.32-94.el6.x86_64.

run virsh nodedev-list --tree  inside a virtual machine with 3 virtio nics and 3 virtio blk.

#virsh nodedev-list --tree
computer
 |
  +- block_vda
  +- block_vdb
  +- block_vdc
  +- net_eth0_52_54_00_20_10_67
  +- net_eth1_52_54_00_8d_b0_14
  +- net_eth2_52_54_00_5d_1d_74
  +- net_lo_00_00_00_00_00_00
  +- pci_0000_00_00_0
  +- pci_0000_00_01_0
  +- pci_0000_00_01_1
  |   |
  |   +- scsi_host0
  |   +- scsi_host1
  |     
  +- pci_0000_00_01_2
  |   |
  |   +- usb_usb1
  |       |
  |       +- usb_1_0_1_0
  |       +- usb_1_1
  |           |
  |           +- usb_1_1_1_0
  |             
  +- pci_0000_00_01_3
  +- pci_0000_00_02_0
  +- pci_0000_00_03_0
  +- pci_0000_00_04_0
  +- pci_0000_00_05_0
  +- pci_0000_00_06_0
  +- pci_0000_00_07_0
  +- pci_0000_00_08_0
  +- pci_0000_00_09_0
  +- pci_0000_00_0a_0
For result, we can see 3 virtio nics all linked to 'computer' instead of their
respective PCI devices.

Verify this bug with kernel-2.6.32-115.el6.x86_64 as same guest, same configuration.
#virsh nodedev-list --tree 
computer
 |
  +- net_lo_00_00_00_00_00_00
  +- pci_0000_00_00_0
  +- pci_0000_00_01_0
  +- pci_0000_00_01_1
  |   |
  |   +- scsi_host0
  |   +- scsi_host1
  |     
  +- pci_0000_00_01_2
  |   |
  |   +- usb_usb1
  |       |
  |       +- usb_1_0_1_0
  |       +- usb_1_1
  |           |
  |           +- usb_1_1_1_0
  |             
  +- pci_0000_00_01_3
  +- pci_0000_00_02_0
  +- pci_0000_00_03_0
  |   |
  |   +- net_eth0_52_54_00_20_10_67
  |     
  +- pci_0000_00_04_0
  +- pci_0000_00_05_0
  |   |
  |   +- block_vda
  |     
  +- pci_0000_00_06_0
  +- pci_0000_00_07_0
  |   |
  |   +- block_vdb
  |     
  +- pci_0000_00_08_0
  |   |
  |   +- block_vdc
  |     
  +- pci_0000_00_09_0
  |   |
  |   +- net_eth1_52_54_00_8d_b0_14
  |     
  +- pci_0000_00_0a_0
      |
      +- net_eth2_52_54_00_5d_1d_74

We get expected result, so this bug has been resolved.

Attached dumpxml file of this guest for your reference.

Comment 18 Shirley Zhou 2011-02-15 08:53:08 UTC
Created attachment 478796 [details]
guest dumpxml

Comment 19 Miya Chen 2011-02-24 07:51:38 UTC
change status to verified based on comment#17

Comment 20 errata-xmlrpc 2011-05-23 20:20:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0542.html


Note You need to log in before you can comment on or make changes to this bug.