From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rose, Gregory V" Subject: RE: SR-IOV problems - HVM cannot access network Date: Tue, 1 Mar 2011 12:50:35 -0800 Message-ID: <43F901BD926A4E43B106BF17856F0755013E8C762B@orsmsx508.amr.corp.intel.com> References: <4D6D49A3.90902@speakeasy.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4D6D49A3.90902@speakeasy.net> Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: David White , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- > bounces@lists.xensource.com] On Behalf Of David White > Sent: Tuesday, March 01, 2011 11:32 AM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] SR-IOV problems - HVM cannot access network >=20 > Hi all, >=20 > I am having problems getting SR-IOV functions to work in my HVMs. My > hardware has VT-d support, and pci passthrough works fine for physical > functions. In a nutshell here is the current state: >=20 > Dom0 : NICs are 2-port 82576. I can get full network access using > either PF or VF interfaces. > HVM : PCI passthrough of physical functions work -- full network access > HVM : PCI passthrough of virtual functions fail -- can send pkts but > cannot receive. >=20 > The best lead I have right now is evident from the qemu logs. >=20 > when PF (04:00.0) is assigned to HVM: >=20 > pt_msix_init: get MSI-X table bar base fafbc000 > pt_msix_init: table_off =3D 0, total_entries =3D 10 > pt_msix_init: errno =3D 2 > pt_msix_init: mapping physical MSI-X table to 7f23a03d5000 > pt_msi_setup: msi mapped with pirq 37 > pci_intx: intx=3D1 > register_real_device: Real physical device 04:00.0 registered successfuly= ! > IRQ type =3D MSI-INTx >=20 > when VF (04:10.2) is assigned to HVM: >=20 > pt_msix_init: get MSI-X table bar base fae24000 > pt_msix_init: table_off =3D 0, total_entries =3D 3 > pt_msix_init: errno =3D 2 > pt_msix_init: mapping physical MSI-X table to 7fc918846000 > register_real_device: Real physical device 04:10.2 registered successfuly= ! > IRQ type =3D INTx >=20 > VFs don't seem to be using MSI/MSI-X interupts. Does this indicate a > problem? Yes, this is absolutely a problem. 82576 virtual functions require MSI-X i= nterrupt support to function properly. You didn't mention what your guest = OS is but the guest OS must support MSI-X interrupts. Even if it does have= MSI-X support the attempt to allocate the vectors may fail for some reason= . If that happens then the VF will not function correctly. - Greg Rose LAN Access Division Intel Corp.