From: Dario Faggioli Subject: Re: Issue with PCI-passthrough and pvops Date: Wed, 19 Oct 2011 01:54:07 +0200 Message-ID: <1318982052.2997.19.camel@Palantir> References: <1318865791.25056.28.camel@Palantir> <20111017164020.GE19684@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1493366676==" Return-path: In-Reply-To: <20111017164020.GE19684@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1493366676== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-CoV6knQL6wi7ETBpAdXV" --=-CoV6knQL6wi7ETBpAdXV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2011-10-17 at 12:40 -0400, Konrad Rzeszutek Wilk wrote: > > Here's the thing: > > -- > > # xl pci-list-assignable-devices=20 > > 0000:07:00.0 > > 0000:07:00.1 > >=20 > > # cat xen/VMs/Debian-squeeze.pv | grep pci=3D > > # pci=3D[ '[SSSS:]BB:DD.F[,option1[,option2[...]]]', ... ] > > pci=3D[ '07:00.0' ] > >=20 > > # xl list > > Name ID Mem VCPUs State Time(s= ) > > Domain-0 0 750 16 r----- = 2205.3 > > Debian-squeeze_pv 3 128 2 ---sc- = 19.8 > > -- > >=20 >=20 > Do you have 'iommu=3Dsoft' in your guest config? > I do... BTW, it turned out that was an out-of-memory issue, which went away after increasing VM's memory (although the old amount of RAM was enough without PCI-passthrough and still is for HVM, but anyway...) Now I have a pv-guest that boots but here's what the host and the guest are saying. # xl list Name ID Mem VCPUs State Time(s) Domain-0 0 750 16 r----- 458= 07.9 Debian-squeeze_pv 1 512 2 r----- 21= 16.6 Host: [42515.533157] pciback 0000:07:00.0: restoring config space at offset 0xf (= was 0x100, writing 0x10f) [42515.533194] pciback 0000:07:00.0: restoring config space at offset 0x8 (= was 0xc, writing 0xd58f800c) [42515.533209] pciback 0000:07:00.0: restoring config space at offset 0x6 (= was 0x1, writing 0xecc1) [42515.533224] pciback 0000:07:00.0: restoring config space at offset 0x4 (= was 0xc, writing 0xd590000c) [42515.533290] pciback 0000:07:00.0: BAR 7: set to [mem 0xdf200000-0xdf2fff= ff 64bit] (PCI address [0xdf200000-0xdf2fffff]) [42515.533302] pciback 0000:07:00.0: BAR 10: set to [mem 0xdf300000-0xdf3ff= fff 64bit] (PCI address [0xdf300000-0xdf3fffff]) (XEN) [VT-D]iommu.c:1543: d0:PCIe: unmap 0000:07:00.0 (XEN) [VT-D]iommu.c:1412: d1:PCIe: map 0000:07:00.0 [42515.556555] xen-pciback: vpci: 0000:07:00.0: assign to virtual slot 0 mapping kernel into physical memory about to get started... [42526.391448] pciback 0000:07:00.0: Driver tried to write to a read-only c= onfiguration space field at offset 0x168, size 2. This may be harmless, but= if you have problems with your device: [42526.391450] 1) see permissive attribute in sysfs [42526.391451] 2) report problems to the xen-devel mailing list along with = details of your device obtained from lspci. Guest: [ 19.607997] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - vers= ion 3.4.8-k [ 19.608670] ixgbe: Copyright (c) 1999-2011 Intel Corporation. [ 19.609465] ixgbe 0000:00:00.0: device not available (can't reserve [mem= 0xdf300000-0xe32fffff 64bit]) [ 19.610878] ixgbe: probe of 0000:00:00.0 failed with error -22 [ 19.611764] ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function Ne= twork Driver - version 2.1.0-k [ 19.612656] Copyright (c) 2009 - 2010 Intel Corporation. [ 19.614144] ixgb: Intel(R) PRO/10GbE Network Driver - version 1.0.135-k2= -NAPI [ 19.614865] ixgb: Copyright (c) 1999-2008 Intel Corporation. While in the guest, I can see the NIC with `lspci' but I can't bring it up. Also, trying to check in /sys/bus/pci/..., the device does not seem to be claimed by anyone (no driver file present). Moreover, when trying to kill the domain, the following happens: # xl destroy 1 libxl: error: libxl_pci.c:925:do_pci_remove: xc_physdev_unmap_pirq irq=3D40 Aborted root@odyn:~# xl list Name ID Mem VCPUs State Time(s) Domain-0 0 750 16 r----- 10= 42.4 Debian-squeeze_pv Thanks and Regards, Dario --=20 <> (Raistlin Majere) ---------------------------------------------------------------------- Dario Faggioli, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) PhD Candidate, ReTiS Lab, Scuola Superiore Sant'Anna, Pisa (Italy) --=-CoV6knQL6wi7ETBpAdXV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAk6eEaMACgkQk4XaBE3IOsR+4ACfSZx8ClTSoY8AZk8oGiU4VXsn oEIAoKcGwew0eUmhCjr7lgmi0DyxCuWg =W9yv -----END PGP SIGNATURE----- --=-CoV6knQL6wi7ETBpAdXV-- --===============1493366676== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1493366676==--