Hi, Please help: I tried to create a DomU with PCI passthrough. I don''t know hoe to proceed. The last output is:pcifront pci-0: Installing PCI frontend pcifront pci-0: Creating PCI Frontend Bus 0000:00 pcifront pci-0: claiming resource 0000:00:00.0/0 I tried to login VM with xm cosole 6 but nothing happened. linux:~/Desktop # xm console 6 The following is the detail info. Thanks. Vic I have config file: ------------------------------------------------- kernel = "/boot/vmlinuz-3.0.1.stk64" #ramdisk = "/boot/initrd-xen" memory = 512 vcpus = ''2'' pci = [''02:00.0''] name = "xen-vm1" root = ''/dev/xvda1 ro'' disk = [ ''file:/home/domains/nvidia/XenGuest1.img,xvda1,w'', ] on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' ----------------------------------------------------------- after xm create -c nvidia.cfg I can see linux:~/Desktop # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 3400 2 r----- 206.5 xen-vm1 6 512 2 -b---- 15.4 linux:~/Desktop # ----------------------------------------------------------------------------------------------------- I checked the log: linux:/etc/xen # xm create -c nvidia.cfg Using config file "./nvidia.cfg". Started domain xen-vm1 (id=6) Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Linux version 3.0.1.stk64 (dfn@localhost.localdomain) (gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) ) #1 SMP Sat Aug 13 12:53:46 EDT 2011 Command line: root=/dev/xvda1 ro ACPI in unprivileged domain disabled released 0 pages of unused memory Set 0 page(s) to 1-1 mapping. BIOS-provided physical RAM map: Xen: 0000000000000000 - 00000000000a0000 (usable) Xen: 00000000000a0000 - 0000000000100000 (reserved) Xen: 0000000000100000 - 0000000020800000 (usable) NX (Execute Disable) protection: active DMI not present or invalid. No AGP bridge found last_pfn = 0x20800 max_arch_pfn = 0x400000000 init_memory_mapping: 0000000000000000-0000000020800000 No NUMA configuration found Faking a node at 0000000000000000-0000000020800000 Initmem setup node 0 0000000000000000-0000000020800000 NODE_DATA [000000001ffec000 - 000000001fffffff] Zone PFN ranges: DMA 0x00000010 -> 0x00001000 DMA32 0x00001000 -> 0x00100000 Normal empty Movable zone start PFN for each node early_node_map[2] active PFN ranges 0: 0x00000010 -> 0x000000a0 0: 0x00000100 -> 0x00020800 SFI: Simple Firmware Interface v0.81 http://simplefirmware.org SMP: Allowing 2 CPUs, 0 hotplug CPUs No local APIC present APIC: disable apic facility APIC: switched to apic NOOP PM: Registered nosave memory: 00000000000a0000 - 0000000000100000 Allocating PCI resources starting at 20800000 (gap: 20800000:df800000) Booting paravirtualized kernel on Xen Xen version: 4.0.0_21091_04-0.2 (preserve-AD) setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:2 nr_node_ids:1 PERCPU: Embedded 27 pages/cpu @ffff88001fe8d000 s78400 r8192 d24000 u110592 Built 1 zonelists in Node order, mobility grouping on. Total pages: 131183 Policy zone: DMA32 Kernel command line: root=/dev/xvda1 ro PID hash table entries: 4096 (order: 3, 32768 bytes) Checking aperture... No AGP bridge found Memory: 502844k/532480k available (4501k kernel code, 448k absent, 29188k reserved, 2929k data, 920k init) SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 Hierarchical RCU implementation. NR_IRQS:16640 nr_irqs:288 16 Console: colour dummy device 80x25 console [tty0] enabled console [hvc0] enabled allocated 5242880 bytes of page_cgroup please try ''cgroup_disable=memory'' option if you don''t want memory cgroups installing Xen timer for CPU 0 Detected 2926.084 MHz processor. Calibrating delay loop (skipped), value calculated using timer frequency.. 5852.16 BogoMIPS (lpj=2926084) pid_max: default: 32768 minimum: 301 Security Framework initialized SELinux: Initializing. Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) Mount-cache hash table entries: 256 Initializing cgroup subsys cpuacct Initializing cgroup subsys memory Initializing cgroup subsys devices Initializing cgroup subsys freezer Initializing cgroup subsys net_cls CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 SMP alternatives: switching to UP code ftrace: allocating 23941 entries in 94 pages Performance Events: unsupported p6 CPU model 23 no PMU driver, software events only. installing Xen timer for CPU 1 SMP alternatives: switching to SMP code Brought up 2 CPUs devtmpfs: initialized Grant table initialized print_constraints: dummy: Time: 165:165:165 Date: 165/165/65 NET: Registered protocol family 16 PCI: setting up Xen PCI frontend stub bio: create slab <bio-0> at 0 ACPI: Interpreter disabled. xen/balloon: Initialising balloon driver. last_pfn = 0x20800 max_arch_pfn = 0x400000000 xen-balloon: Initialising balloon driver. vgaarb: loaded SCSI subsystem initialized PCI: System does not support PCI PCI: System does not support PCI NetLabel: Initializing NetLabel: domain hash size = 128 NetLabel: protocols = UNLABELED CIPSOv4 NetLabel: unlabeled traffic allowed by default Switching to clocksource xen Switched to NOHz mode on CPU #0 CE: xen increased min_delta_ns to 150000 nsec CE: xen increased min_delta_ns to 225000 nsec CE: xen increased min_delta_ns to 337500 nsec CE: xen increased min_delta_ns to 506250 nsec CE: xen increased min_delta_ns to 759375 nsec CE: xen increased min_delta_ns to 1000000 nsec CE: Reprogramming failure. Giving up CE: Reprogramming failure. Giving up hrtimer: interrupt took 4279 ns Switched to NOHz mode on CPU #1 CE: xen increased min_delta_ns to 150000 nsec CE: xen increased min_delta_ns to 225000 nsec CE: xen increased min_delta_ns to 337500 nsec CE: xen increased min_delta_ns to 506250 nsec CE: xen increased min_delta_ns to 759375 nsec CE: xen increased min_delta_ns to 1000000 nsec CE: Reprogramming failure. Giving up CE: Reprogramming failure. Giving up CE: Reprogramming failure. Giving up pnp: PnP ACPI: disabled NET: Registered protocol family 2 IP route cache hash table entries: 8192 (order: 4, 65536 bytes) TCP established hash table entries: 32768 (order: 7, 524288 bytes) TCP bind hash table entries: 32768 (order: 7, 524288 bytes) TCP: Hash tables configured (established 32768 bind 32768) TCP reno registered UDP hash table entries: 256 (order: 1, 8192 bytes) UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) NET: Registered protocol family 1 platform rtc_cmos: registered platform RTC device (no PNP device found) CE: Reprogramming failure. Giving up audit: initializing netlink socket (disabled) type=2000 audit(1317138874.411:1): initialized HugeTLB registered 2 MB page size, pre-allocated 0 pages VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 512 (order 0, 4096 bytes) msgmni has been set to 982 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.4 acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled pcifront pci-0: Installing PCI frontend pcifront pci-0: Creating PCI Frontend Bus 0000:00 pcifront pci-0: claiming resource 0000:00:00.0/0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Please do not cross post. http://wiki.xen.org/xenwiki/AskingXenDevelQuestions and http://wiki.xen.org/xenwiki/XenUsersNetiquette both ask you not to do so. On Wed, 2011-09-28 at 00:19 +0100, Victor Ling wrote:> Hi, > > > Please help: I tried to create a DomU with PCI passthrough. I don''t > know hoe to proceed.You don''t say what version of anything you are running. Please take a look at http://wiki.xen.org/xenwiki/ReportingBugs it gives lots of things which you should consider including in your bug reports. Does it work without the pci device in your configuration file? What sort of device are you passing through? Have you tried something simple like a basic NIC or USB controller? Are there any messages in the dom0 logs? Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I am running Xen 4.0.0 with kernel 3.0.1.stk64. I have a simple config file to create DomU but failed. I have included config file and output message. Do I have to have ramdisk? How could I create/get one? Please help Thanks. Vic ------------------------------------------------------------------ The config file is: kernel = "/boot/vmlinuz-3.0.1.stk64" #ramdisk = "/boot/initrd-2.6.32.12-0.7-default" memory =128 vcpus = ''2'' name = "xen-test" root = ''/dev/xvda1 ro'' disk = [ ''file:/home/domains/nvidia/XenGuest1.img,xvda1,w'', ] _------------------------------------------------------------- linux:/etc/xen # xm create -c nvidia.cfg Using config file "./nvidia.cfg". Started domain xen-vm6 (id=8) Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Linux version 3.0.1.stk64 (dfn@localhost.localdomain) (gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) ) #1 SMP Sat Aug 13 12:53:46 EDT 2011 Command line: root=/dev/xvda1 ro ACPI in unprivileged domain disabled released 0 pages of unused memory Set 0 page(s) to 1-1 mapping. BIOS-provided physical RAM map: Xen: 0000000000000000 - 00000000000a0000 (usable) Xen: 00000000000a0000 - 0000000000100000 (reserved) Xen: 0000000000100000 - 0000000008800000 (usable) NX (Execute Disable) protection: active DMI not present or invalid. No AGP bridge found last_pfn = 0x8800 max_arch_pfn = 0x400000000 init_memory_mapping: 0000000000000000-0000000008800000 No NUMA configuration found Faking a node at 0000000000000000-0000000008800000 Initmem setup node 0 0000000000000000-0000000008800000 NODE_DATA [0000000007fec000 - 0000000007ffffff] Zone PFN ranges: DMA 0x00000010 -> 0x00001000 DMA32 0x00001000 -> 0x00100000 Normal empty Movable zone start PFN for each node early_node_map[2] active PFN ranges 0: 0x00000010 -> 0x000000a0 0: 0x00000100 -> 0x00008800 SFI: Simple Firmware Interface v0.81 http://simplefirmware.org SMP: Allowing 2 CPUs, 0 hotplug CPUs No local APIC present APIC: disable apic facility APIC: switched to apic NOOP PM: Registered nosave memory: 00000000000a0000 - 0000000000100000 Allocating PCI resources starting at 8800000 (gap: 8800000:f7800000) Booting paravirtualized kernel on Xen Xen version: 4.0.0_21091_04-0.2 (preserve-AD) setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:2 nr_node_ids:1 PERCPU: Embedded 27 pages/cpu @ffff880007f4d000 s78400 r8192 d24000 u110592 Built 1 zonelists in Node order, mobility grouping on. Total pages: 34223 Policy zone: DMA32 Kernel command line: root=/dev/xvda1 ro PID hash table entries: 1024 (order: 1, 8192 bytes) Checking aperture... No AGP bridge found Memory: 116580k/139264k available (4501k kernel code, 448k absent, 22236k reserved, 2929k data, 920k init) SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 Hierarchical RCU implementation. NR_IRQS:16640 nr_irqs:288 16 Console: colour dummy device 80x25 console [tty0] enabled console [hvc0] enabled allocated 2097152 bytes of page_cgroup please try ''cgroup_disable=memory'' option if you don''t want memory cgroups installing Xen timer for CPU 0 Detected 2926.028 MHz processor. Calibrating delay loop (skipped), value calculated using timer frequency.. 5852.05 BogoMIPS (lpj=2926028) pid_max: default: 32768 minimum: 301 Security Framework initialized SELinux: Initializing. Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) Mount-cache hash table entries: 256 Initializing cgroup subsys cpuacct Initializing cgroup subsys memory Initializing cgroup subsys devices Initializing cgroup subsys freezer Initializing cgroup subsys net_cls CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 SMP alternatives: switching to UP code ftrace: allocating 23941 entries in 94 pages Performance Events: unsupported p6 CPU model 23 no PMU driver, software events only. installing Xen timer for CPU 1 SMP alternatives: switching to SMP code Brought up 2 CPUs devtmpfs: initialized Grant table initialized print_constraints: dummy: Time: 165:165:165 Date: 165/165/65 NET: Registered protocol family 16 PCI: setting up Xen PCI frontend stub bio: create slab <bio-0> at 0 ACPI: Interpreter disabled. xen/balloon: Initialising balloon driver. last_pfn = 0x8800 max_arch_pfn = 0x400000000 xen-balloon: Initialising balloon driver. vgaarb: loaded SCSI subsystem initialized PCI: System does not support PCI PCI: System does not support PCI NetLabel: Initializing NetLabel: domain hash size = 128 NetLabel: protocols = UNLABELED CIPSOv4 NetLabel: unlabeled traffic allowed by default Switching to clocksource xen Switched to NOHz mode on CPU #0 CE: xen increased min_delta_ns to 150000 nsec CE: xen increased min_delta_ns to 225000 nsec CE: xen increased min_delta_ns to 337500 nsec CE: xen increased min_delta_ns to 506250 nsec CE: xen increased min_delta_ns to 759375 nsec CE: xen increased min_delta_ns to 1000000 nsec CE: Reprogramming failure. Giving up CE: Reprogramming failure. Giving up hrtimer: interrupt took 4327 ns Switched to NOHz mode on CPU #1 CE: xen increased min_delta_ns to 150000 nsec CE: xen increased min_delta_ns to 225000 nsec CE: xen increased min_delta_ns to 337500 nsec CE: xen increased min_delta_ns to 506250 nsec CE: xen increased min_delta_ns to 759375 nsec CE: xen increased min_delta_ns to 1000000 nsec CE: Reprogramming failure. Giving up CE: Reprogramming failure. Giving up CE: Reprogramming failure. Giving up pnp: PnP ACPI: disabled NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 2, 16384 bytes) TCP established hash table entries: 8192 (order: 5, 131072 bytes) TCP bind hash table entries: 8192 (order: 5, 131072 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered UDP hash table entries: 128 (order: 0, 4096 bytes) UDP-Lite hash table entries: 128 (order: 0, 4096 bytes) NET: Registered protocol family 1 platform rtc_cmos: registered platform RTC device (no PNP device found) CE: Reprogramming failure. Giving up audit: initializing netlink socket (disabled) type=2000 audit(1317642681.533:1): initialized HugeTLB registered 2 MB page size, pre-allocated 0 pages VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 512 (order 0, 4096 bytes) msgmni has been set to 227 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.4 acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi, I am running ubuntu 2.6.31-14-server for my DomU and Open suse 2.6.37.1-1.2-xen for my Dom0. I got the following message from DomU console. I am doing PCI passthrough Any idea how to fix the problem? Thanks. Vic [ 0.030714] PCI: Fatal: No config space access function found [ 0.063044] XENBUS: Device with no driver: device/pci/0 root@ubuntu:~# dmesg | grep pci [ 0.057274] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 0.057299] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 [ 0.063044] XENBUS: Device with no driver: device/pci/0 root@ubuntu:~# uname -a Linux ubuntu 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 x86_64 GNU/Linux root@ubuntu:~# _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2011-Oct-06 03:16 UTC
Re: [Xen-devel] Couple PCI passthrough questions
On Wed, Oct 05, 2011 at 03:37:38PM -0700, Victor Ling wrote:> Hi, > I am running ubuntu 2.6.31-14-server for my DomU and Open suse 2.6.37.1-1.2-xen for my Dom0. > > I got the following message from DomU console. I am doing PCI passthrough > > Any idea how to fix the problem?Well, The PCI frontend code was merged in 2.6.38 time-frame, so you need to update your kernel. Perhaps the 3.0.> > Thanks. > > Vic > > [ 0.030714] PCI: Fatal: No config space access function found > > [ 0.063044] XENBUS: Device with no driver: device/pci/0 > > root@ubuntu:~# dmesg | grep pci > [ 0.057274] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 > [ 0.057299] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 > [ 0.063044] XENBUS: Device with no driver: device/pci/0 > root@ubuntu:~# uname -a > Linux ubuntu 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 x86_64 GNU/Linux > root@ubuntu:~#> _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel