From: Jean Guyader Subject: Re: problems with pciback on 2.6.27 with xenclient patches Date: Wed, 17 Jun 2009 08:48:31 +0100 Message-ID: References: <801d0f690906161249u699c4ac3te4ad7b015d21a32@mail.gmail.com> <801d0f690906170040h95da5c8x356652dd37d790eb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <801d0f690906170040h95da5c8x356652dd37d790eb@mail.gmail.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: Ben Garside Cc: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Ben, This line "virt_caps : hvm" should have hvm and hvm_directio if you want to do pass through. Could you please get us the xen boot log? Jean 2009/6/17 Ben Garside : > Hi Jean, > > Thanks very much for the reply! > > Output from xm info is as follows: > host=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : benDom0 > release=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 2.6.27.19-5.1 > version=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : #7 SMP Mon Jun 15 = 16:01:44 BST 2009 > machine=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : x86_64 > nr_cpus=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 4 > nr_nodes=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 1 > cores_per_socket=A0=A0=A0=A0=A0=A0 : 4 > threads_per_core=A0=A0=A0=A0=A0=A0 : 1 > cpu_mhz=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 2327 > hw_caps=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : > bfebfbff:20100800:00000000:00000140:040ce3bd:00000000:00000001:00000000 > virt_caps=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : hvm > total_memory=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 2045 > free_memory=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 127 > node_to_cpu=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : node0:0-3 > node_to_memory=A0=A0=A0=A0=A0=A0=A0=A0 : node0:127 > xen_major=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 3 > xen_minor=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 5 > xen_extra=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : -unstable > xen_caps=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : xen-3.0-x86_64 xen-3= .0-x86_32p hvm-3.0-x86_32 > hvm-3.0-x86_32p hvm-3.0-x86_64 > xen_scheduler=A0=A0=A0=A0=A0=A0=A0=A0=A0 : credit > xen_pagesize=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : 4096 > platform_params=A0=A0=A0=A0=A0=A0=A0 : virt_start=3D0xffff800000000000 > xen_changeset=A0=A0=A0=A0=A0=A0=A0=A0=A0 : Mon Jun 08 12:24:14 2009 +0100= 19739:4448fae52553 > cc_compiler=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : gcc version 4.3.2 (Ubuntu = 4.3.2-1ubuntu12) > cc_compile_by=A0=A0=A0=A0=A0=A0=A0=A0=A0 : root > cc_compile_domain=A0=A0=A0=A0=A0 : > cc_compile_date=A0=A0=A0=A0=A0=A0=A0 : Fri Jun 12 08:22:28 BST 2009 > xend_config_format=A0=A0=A0=A0 : 4 > > > 2009/6/17 Jean Guyader >> >> Hi Ben, >> >> The "I/O Virtualization Enable" log message is displayed by Xen and >> not by pciback in dom0. >> >> Could you give us the output of "xm info". >> >> Thanks, >> >> Jean >> >> 2009/6/16 Ben Garside : >> > Hi, am not sure if this is the most appropriate place to post, so >> > excuse me if >> > it's not. I've been tearing my hair out (and there's not much left) >> > trying to >> > get pciback to work. I picked the xci based kernel (2.6.27 with the pq >> > patches >> > (using guilt) - summarised at http://xenbits.xensource.com/xenclient/) >> > as it >> > seems to have the best support for pciback (and ultimate goal of vga >> > passthrough) for a recent kernel. Compile was ok, XEN related kernel >> > parameters >> > are below. When I add the iommu=3D1 vtd=3D1=A0 pciback.permissive >> > pciback.hide=3D(00:1b.0) to the boot args, it looks like the card is >> > "seized", >> > only later to be released again - no mention of I/O virtualization >> > which I have >> > seen in logs of a few other people. Doing an lspci in Dom0 shows the >> > card as >> > normal. Have tried with a few different cards (this particular pci >> > device is >> > onboard sound). >> > >> > I have tried it with xen 3.40 (release) and with unstable (currently >> > 3.5). My >> > machine is a Dell T5400 (xeon processor) and has all the vt-d options >> > enabled in >> > the bios. Oh one other thing I noticed is that if I put a spurious >> > (incorrect) >> > option as a boot arg, I don't get any warning that this is >> > unrecognised - have >> > also tried adding debug to the boot line, but it has no effect. >> > >> > Any help much appreciated - this is driving me crazy! >> > >> > >> > Grub entry: >> > title Xen 3.4 Kernel 2.6.27.19-5.1 >> > uuid 6724237b-5a56-4765-b3e0-21ce3d358ab3 >> > kernel /xen-3.4.gz >> > module /vmlinuz-2.6.27.19-5.1=A0 debug >> > root=3D/dev/mapper/VolGroup0-dom0_root ro >> > iommu=3D1 vtd=3D1 dom0_mem=3D512M pciback.permissive=A0 pciback.hide= =3D(00:1b.0) >> > console=3Dtty0 >> > module /initrd-2.6.27.19-5.1.img >> > >> > >> > Dmesg Entries: >> > >> > [=A0=A0=A0 0.522373] pciback: adding device ID type: 1 for 0000:00:1b.= 0 >> > [=A0=A0=A0 0.522470] pciback 0000:00:00.0: probing... >> > [=A0=A0=A0 0.522554] pciback 0000:00:01.0: probing... >> > [=A0=A0=A0 0.522633] pciback 0000:00:05.0: probing... >> > [=A0=A0=A0 0.522713] pciback 0000:00:09.0: probing... >> > [=A0=A0=A0 0.522794] pciback 0000:00:10.0: probing... >> > [=A0=A0=A0 0.522875] pciback 0000:00:10.1: probing... >> > [=A0=A0=A0 0.522956] pciback 0000:00:10.2: probing... >> > [=A0=A0=A0 0.523037] pciback 0000:00:10.3: probing... >> > [=A0=A0=A0 0.523118] pciback 0000:00:10.4: probing... >> > [=A0=A0=A0 0.523199] pciback 0000:00:11.0: probing... >> > [=A0=A0=A0 0.523280] pciback 0000:00:15.0: probing... >> > [=A0=A0=A0 0.523361] pciback 0000:00:15.1: probing... >> > [=A0=A0=A0 0.523442] pciback 0000:00:16.0: probing... >> > [=A0=A0=A0 0.523523] pciback 0000:00:16.1: probing... >> > [=A0=A0=A0 0.523604] pciback 0000:00:1b.0: probing... >> > [=A0=A0=A0 0.523679] pciback 0000:00:1b.0: seizing device >> > [=A0=A0=A0 0.523755] pciback 0000:00:1b.0: pcistub_device_alloc >> > [=A0=A0=A0 0.523832] pciback 0000:00:1b.0: deferring initialization >> > [=A0=A0=A0 0.523915] pciback 0000:00:1c.0: probing... >> > [=A0=A0=A0 0.524067] pciback 0000:00:1d.0: probing... >> > [=A0=A0=A0 0.524149] pciback 0000:00:1d.1: probing... >> > >> > ... >> > [=A0=A0=A0 0.896278] pciback: pcistub_init_devices_late >> > [=A0=A0=A0 0.896356] pciback 0000:00:1b.0: initializing... >> > [=A0=A0=A0 0.896433] pciback 0000:00:1b.0: pcistub_dev_data_alloc >> > [=A0=A0=A0 0.896511] pciback 0000:00:1b.0: initializing config >> > [=A0=A0=A0 0.896586] pciback 0000:00:1b.0: initializing virtual >> > configuration space >> > [=A0=A0=A0 0.896666] pciback 0000:00:1b.0: added config field at offse= t 0x04 >> > [=A0=A0=A0 0.896741] pciback 0000:00:1b.0: added config field at offse= t 0x3c >> > [=A0=A0=A0 0.896817] pciback 0000:00:1b.0: added config field at offse= t 0x3d >> > [=A0=A0=A0 0.896893] pciback 0000:00:1b.0: added config field at offse= t 0x0c >> > [=A0=A0=A0 0.896969] pciback 0000:00:1b.0: added config field at offse= t 0x0d >> > [=A0=A0=A0 0.897044] pciback 0000:00:1b.0: added config field at offse= t 0x0f >> > [=A0=A0=A0 0.897134] pciback 0000:00:1b.0: added config field at offse= t 0x10 >> > [=A0=A0=A0 0.897222] pciback 0000:00:1b.0: added config field at offse= t 0x14 >> > [=A0=A0=A0 0.897306] pciback 0000:00:1b.0: added config field at offse= t 0x18 >> > [=A0=A0=A0 0.897389] pciback 0000:00:1b.0: added config field at offse= t 0x1c >> > [=A0=A0=A0 0.897472] pciback 0000:00:1b.0: added config field at offse= t 0x20 >> > [=A0=A0=A0 0.897556] pciback 0000:00:1b.0: added config field at offse= t 0x24 >> > [=A0=A0=A0 0.897639] pciback 0000:00:1b.0: added config field at offse= t 0x30 >> > [=A0=A0=A0 0.897736] pciback 0000:00:1b.0: Found capability 0x1 at 0x5= 0 >> > [=A0=A0=A0 0.897812] pciback 0000:00:1b.0: added config field at offse= t 0x50 >> > [=A0=A0=A0 0.897888] pciback 0000:00:1b.0: added config field at offse= t 0x52 >> > [=A0=A0=A0 0.897966] pciback 0000:00:1b.0: added config field at offse= t 0x54 >> > [=A0=A0=A0 0.898052] pciback 0000:00:1b.0: added config field at offse= t 0x56 >> > [=A0=A0=A0 0.898128] pciback 0000:00:1b.0: added config field at offse= t 0x57 >> > [=A0=A0=A0 0.898204] pciback 0000:00:1b.0: enabling device >> > [=A0=A0=A0 0.898290] pciback 0000:00:1b.0: reset device >> > [=A0=A0=A0 0.932248] serio: i8042 KBD port at 0x60,0x64 irq 1 >> > [=A0=A0=A0 0.932353] serio: i8042 AUX port at 0x60,0x64 irq 12 >> > [=A0=A0=A0 0.948131] mice: PS/2 mouse device common for all mice >> > >> > >> > >> > >> > 2.6.27 with patches compile args: >> > # CONFIG_X86_XEN is not set >> > CONFIG_X86_64_XEN=3Dy >> > CONFIG_X86_XEN_GENAPIC=3Dy >> > CONFIG_XEN_PCIDEV_FRONTEND=3Dy >> > CONFIG_XEN_PCIDEV_FE_DEBUG=3Dy >> > # CONFIG_INPUT_XEN is not set >> > # CONFIG_TCG_XEN is not set >> > CONFIG_XEN=3Dy >> > CONFIG_XEN_INTERFACE_VERSION=3D0x00030207 >> > # XEN >> > CONFIG_XEN_PRIVILEGED_GUEST=3Dy >> > # CONFIG_XEN_UNPRIVILEGED_GUEST is not set >> > CONFIG_XEN_PRIVCMD=3Dy >> > CONFIG_XEN_XENBUS_DEV=3Dy >> > CONFIG_XEN_NETDEV_ACCEL_SFC_UTIL=3Dm >> > CONFIG_XEN_BACKEND=3Dy >> > CONFIG_XEN_BLKDEV_BACKEND=3Dy >> > CONFIG_XEN_BLKDEV_TAP=3Dy >> > CONFIG_XEN_NETDEV_BACKEND=3Dy >> > # CONFIG_XEN_NETDEV_PIPELINED_TRANSMITTER is not set >> > CONFIG_XEN_NETDEV_LOOPBACK=3Dm >> > CONFIG_XEN_PCIDEV_BACKEND=3Dy >> > CONFIG_XEN_PCIDEV_BACKEND_VPCI=3Dy >> > # CONFIG_XEN_PCIDEV_BACKEND_PASS is not set >> > # CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set >> > # CONFIG_XEN_PCIDEV_BACKEND_CONTROLLER is not set >> > CONFIG_XEN_PCIDEV_BE_DEBUG=3Dy >> > CONFIG_XEN_TPMDEV_BACKEND=3Dy >> > CONFIG_XEN_SCSI_BACKEND=3Dm >> > CONFIG_XEN_BLKDEV_FRONTEND=3Dy >> > CONFIG_XEN_NETDEV_FRONTEND=3Dy >> > CONFIG_XEN_NETDEV_ACCEL_SFC_FRONTEND=3Dm >> > CONFIG_XEN_SCSI_FRONTEND=3Dm >> > CONFIG_XEN_GRANT_DEV=3Dy >> > CONFIG_XEN_FRAMEBUFFER=3Dy >> > CONFIG_XEN_KEYBOARD=3Dy >> > CONFIG_XEN_DISABLE_SERIAL=3Dy >> > CONFIG_XEN_SYSFS=3Dy >> > CONFIG_XEN_NR_GUEST_DEVICES=3D256 >> > # CONFIG_XEN_COMPAT_030002_AND_LATER is not set >> > # CONFIG_XEN_COMPAT_030004_AND_LATER is not set >> > # CONFIG_XEN_COMPAT_030100_AND_LATER is not set >> > # CONFIG_XEN_COMPAT_030200_AND_LATER is not set >> > CONFIG_XEN_COMPAT_LATEST_ONLY=3Dy >> > CONFIG_XEN_COMPAT=3D0xffffff >> > CONFIG_XEN_SMPBOOT=3Dy >> > CONFIG_XEN_DEVMEM=3Dy >> > CONFIG_XEN_BALLOON=3Dy >> > CONFIG_XEN_SCRUB_PAGES=3Dy >> > >> > _______________________________________________ >> > Xen-devel mailing list >> > Xen-devel@lists.xensource.com >> > http://lists.xensource.com/xen-devel >> > >> > > >