Bug 582886 - The assigned VF cannot be found in PV guest.
Summary: The assigned VF cannot be found in PV guest.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel-xen
Version: 5.5
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Paolo Bonzini
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 591764 621134 (view as bug list)
Depends On:
Blocks: 514490
TreeView+ depends on / blocked
 
Reported: 2010-04-16 05:58 UTC by Rita Wu
Modified: 2013-07-03 01:39 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-13 21:28:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
See in "Hardware" , virt-manager (437.29 KB, image/png)
2010-04-16 06:06 UTC, Rita Wu
no flags Details
xend.log (137.54 KB, application/octet-stream)
2010-04-16 06:08 UTC, Rita Wu
no flags Details
backport of c/s 103, 998, 999 (4.18 KB, patch)
2010-08-04 11:32 UTC, Paolo Bonzini
no flags Details | Diff
screenshot for commands output on guest (40.84 KB, image/png)
2010-08-09 08:46 UTC, Linqing Lu
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0017 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 5.6 kernel security and bug fix update 2011-01-13 10:37:42 UTC

Description Rita Wu 2010-04-16 05:58:23 UTC
Description of problem:
VF cannot be found via "lspci" inside PV guest after assigning VF.While it can be found both via "xm pci-list" and "Hardware" tab in Virt-manager. 

Version-Release number of selected component (if applicable):
Linux intel-x5550-12-1 2.6.18-194.el5xen #1 SMP Tue Mar 16 22:01:26 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

& xen-3.0.3-105.el5

How reproducible:
always

Steps to Reproduce:
Host:
1.[root@intel-x5550-12-1 ~]# xm pci-list rhel54_32_pv
domain   bus   slot   func
0    3     10     0   
Guest:
1.# dmesg |grep igb
2.# lspci


  
Actual results:
The VF cannot be found via "lspci" inside guest 

Expected results:
The VF can be found via "lspci" inside guest, we should also access the guest via VF link

Additional info:

Comment 1 Rita Wu 2010-04-16 06:06:22 UTC
Created attachment 406999 [details]
See in "Hardware" , virt-manager

Comment 2 Rita Wu 2010-04-16 06:08:55 UTC
Created attachment 407000 [details]
xend.log

Comment 3 Rita Wu 2010-04-16 06:14:38 UTC
The physical pci device can be found in PV guest
[root@virtlab-66-85-194 ~]# lspci
00:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection
(rev 01)

Comment 4 Chris Wright 2010-04-16 06:16:52 UTC
This is a known limitation.  At the very least we need this upstream Xen changeset
(and it's parent changeset as a prerequisiste):

http://xenbits.xen.org/linux-2.6.18-xen.hg?rev/4b0c1a686393

Dexuan Cui has provided more details here:

https://bugzilla.redhat.com/show_bug.cgi?id=525577#c66

Comment 5 Andrew Jones 2010-04-16 06:34:36 UTC
We'll take a look at getting this backported for 5.6.

Comment 6 Paolo Bonzini 2010-08-04 11:30:55 UTC
*** Bug 621134 has been marked as a duplicate of this bug. ***

Comment 7 Paolo Bonzini 2010-08-04 11:32:06 UTC
Created attachment 436500 [details]
backport of c/s 103, 998, 999

From bug #621134:

"This patch was provided at the end of February 2010 by Intel to upstream xen.

It virtualizes vendor, device and BAR fields in the PCI config space, because they're dummy for a VF's host-level PCI config space.  pciback can do so by always extracting the values installed in dom0 kernel's own PCI structures, rather than interrogating the underlying PCI config space directly.

It's a backport of upstream changesets 103, 998 and 999.  They are backported together because each is basically reverted by the following one.

On top of this one may want to backport 1003 too."

Comment 8 Paolo Bonzini 2010-08-04 11:38:00 UTC
Would it be possible for QE to test the patch before they are posted/included, if I gave you a test kernel?  Thanks!

Comment 9 RHEL Program Management 2010-08-04 12:09:17 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 Paolo Bonzini 2010-08-04 14:53:58 UTC
Test kernel are available at

http://people.redhat.com/pbonzini/kernel-100804/

Thanks in advance for any testing.

Comment 11 Linqing Lu 2010-08-09 08:27:50 UTC
Test passed with the kernel-xen mentioned in comment 10:
kernel-xen-2.6.18-210.el5.pbtest.x86_64
kernel-xen-devel-2.6.18-210.el5.pbtest.x86_64

Both "dmesg |grep igb" and "lspci" can get corresponding VF info of the guest.

Comment 12 Linqing Lu 2010-08-09 08:46:38 UTC
Created attachment 437543 [details]
screenshot for commands output on guest

Comment 14 Jarod Wilson 2010-08-13 02:23:57 UTC
in kernel-2.6.18-212.el5
You can download this test kernel from http://people.redhat.com/jwilson/el5

Detailed testing feedback is always welcomed.

Comment 15 Paolo Bonzini 2010-08-16 08:01:15 UTC
*** Bug 591764 has been marked as a duplicate of this bug. ***

Comment 17 Binbin Yu 2010-12-24 07:12:21 UTC
Test steps:
1. generate VFs on host and unbind a VF
2. create rhel5u5 PV guest with a line pci=["0000:0f:10.5"] in config file
3. [host]#xm pci-list $pv-guest-id
4. see pv guest's hardware by virt-manager
5. [guest]#lspci
6. [guest]# dmesg |grep igb

host: rhel5.5, x86_64
guest:rhel5.5 i386 and x86_64 PV (kernel-2.6.18.194.el5xen)


Reproduce this bug with:kernel-xen-2.6.18-194.el5,xen-3.0.3-105.el5
[host]# xm pci-list rhel5u5-32-pv
domain   bus   slot   func
0    f     10     5   
[guest]# dmesg |grep igb
[guest]# lspci


Verified with:  xen-3.0.3-120.el5, kernel-xen-2.6.18-232.el5, rhel5.5 i386 & x86_64 PV guest, pass-through 2 pci devices to guest
[host xen]# xm pci-list 6
domain   bus   slot   func
0    f     10     5      
0    f     10     3 
[guest]# lspci
00:00.3 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
00:00.5 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
[guest]# dmesg |grep igb
igbvf 0000:00:00.3: PF still in reset state, assigning new address
igbvf 0000:00:00.3: PF still resetting
igbvf 0000:00:00.3: Intel(R) 82576 Virtual Function
igbvf 0000:00:00.3: Address: d2:25:a4:2f:15:eb
igbvf 0000:00:00.3: MAC: 1
igbvf 0000:00:00.5: PF still in reset state, assigning new address
igbvf 0000:00:00.5: PF still resetting
igbvf 0000:00:00.5: Intel(R) 82576 Virtual Function
igbvf 0000:00:00.5: Address: 46:01:b0:34:32:99
igbvf 0000:00:00.5: MAC: 1
igbvf 0000:00:00.3: PF still resetting
igbvf 0000:00:00.5: PF still resetting
[root@dhcp-66-82-191 ~]#


According to the result above, set bug status to VERIFIED.

Comment 18 Binbin Yu 2010-12-24 08:15:40 UTC
Also verified  with kernel-xen-2.6.18-238.el5

Comment 20 errata-xmlrpc 2011-01-13 21:28:22 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-0017.html


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