WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] PCI passtrough with Xen 4.0.0-rc3

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] PCI passtrough with Xen 4.0.0-rc3
From: Ady Deac <ady@xxxxxxxxxxx>
Date: Thu, 15 Jul 2010 00:33:23 +0300
Delivery-date: Wed, 14 Jul 2010 14:35:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5
Hi guys,

Here is the domU config:
import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'
device_model = '/usr/' + arch_libdir + '/xen-default/bin/qemu-dm'
name = "atlas"
kernel = "/xen/domains/atlas/kernel"
root = "/dev/xvda1 ro"
extra = "novga nofb 3 panic=1 xencons=tty iommu=soft swiotlb=force nosmp hostname=atlas.floresti.mikesnet.ro eth0=10.0.0.11:255.255.255.0:10.0.0.1"
vcpus = 1
cpu_weight = 128
cpus = "1"
memory = 384
disk = [ 'phy:homepc/atlas,xvda1,w', 'phy:homepc/atlas_swap,xvda9,w' ]
vif = [ 'bridge=lan, vifname=atlas0, mac=00:16:3E:60:B6:C0' ]
pci=['00:16.0','00:16.2']
snapshot=0
sdl=0
vnc=0
ne2000=0
localtime=0
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'
dhcp = "off"

Here's a snip from dom)'s dmesg:
[ 1610.252078] pciback: vpci: 0000:00:16.0: assign to virtual slot 0
[ 1610.255466] pciback: vpci: 0000:00:16.2: assign to virtual slot 0 func 2
[ 1610.658159] blkback: ring-ref 9, event-channel 10, protocol 1 (x86_64-abi) [ 1610.664633] blkback: ring-ref 10, event-channel 11, protocol 1 (x86_64-abi)
[ 1612.294866] pciback 0000:00:16.2: enabling device (0000 -> 0002)
[ 1612.294910] xen: registering gsi 11 triggering 0 polarity 1
[ 1612.294913] xen_allocate_pirq: returning irq 11 for gsi 11
[ 1612.294946] xen: --> irq=11
[ 1612.294951] Already setup the GSI :11
[ 1612.294985] pciback 0000:00:16.2: PCI INT B -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11
[ 1612.391269] pciback 0000:00:16.0: enabling device (0000 -> 0002)
[ 1612.391312] xen: registering gsi 10 triggering 0 polarity 1
[ 1612.391315] xen_allocate_pirq: returning irq 10 for gsi 10
[ 1612.391348] xen: --> irq=10
[ 1612.391351] Already setup the GSI :10
[ 1612.391385] pciback 0000:00:16.0: PCI INT A -> Link[LNKC] -> GSI 10 (level, low) -> IRQ 10
[ 1621.068048] atlas0: no IPv6 routers present
[ 1824.972672] lan: port 2(atlas0) entering disabled state
[ 1824.972888] lan: port 2(atlas0) entering disabled state
[ 1825.106895] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1825.419306] pciback 0000:00:16.0: PCI INT A disabled
[ 1825.419352] pciback 0000:00:16.2: PCI INT B disabled

And here is the domU's output:
home-xen:~# xm create -c /xen/domains/atlas/config
Using config file "/xen/domains/atlas/config".
Started domain atlas (id=5)
Linux version 2.6.34-xen (root@home-xen) (gcc version 4.4.4 (Debian 4.4.4-6) ) #3 SMP Wed Jul 14 19:59:44 UTC 2010 Command line: root=/dev/xvda1 ro novga nofb 3 panic=1 xencons=tty iommu=soft swiotlb=force nosmp hostname=atlas.floresti.mikesnet.ro eth0=10.0.0.11:255.255.255.0:10.0.0.1
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 00000000000a0000 (usable)
 Xen: 00000000000a0000 - 0000000000100000 (reserved)
 Xen: 0000000000100000 - 0000000018000000 (usable)
NX (Execute Disable) protection: active
DMI not present or invalid.
No AGP bridge found
last_pfn = 0x18000 max_arch_pfn = 0x400000000
init_memory_mapping: 0000000000000000-0000000018000000
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   empty
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x000000a0
    0: 0x00000100 -> 0x00018000
SMP: Allowing 1 CPUs, 0 hotplug CPUs
No local APIC present
APIC: disable apic facility
APIC: switched to apic NOOP
Allocating PCI resources starting at 18000000 (gap: 18000000:e8000000)
Booting paravirtualized kernel on Xen
Xen version: 4.0.1-rc3 (preserve-AD)
setup_percpu: NR_CPUS:4 nr_cpumask_bits:4 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 27 pages/cpu @ffff8800016e4000 s81512 r8192 d20888 u110592
pcpu-alloc: s81512 r8192 d20888 u110592 alloc=27*4096
pcpu-alloc: [0] 0
Xen: using vcpu_info placement
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 96863
Kernel command line: root=/dev/xvda1 ro novga nofb 3 panic=1 xencons=tty iommu=soft swiotlb=force nosmp hostname=atlas.floresti.mikesnet.ro eth0=10.0.0.11:255.255.255.0:10.0.0.1
PID hash table entries: 2048 (order: 2, 16384 bytes)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Placing 64MB software IO TLB between ffff880002540000 - ffff880006540000
software IO TLB at phys 0x2540000 - 0x6540000
Subtract (40 early reservations)
  #1 [00016b9000 - 00016c8000]  XEN PAGETABLES
  #2 [0001000000 - 00015d5f7c]   TEXT DATA BSS
  #3 [00015f6000 - 00016b9000]  XEN START INFO
  #4 [0000001000 - 0000003000]      TRAMPOLINE
  #5 [0000100000 - 00001b0000]         PGTABLE
  #6 [00015d5f80 - 00015d6f80]         BOOTMEM
  #7 [0000003000 - 0000003048]         BOOTMEM
  #8 [00015d7000 - 00015d8000]         BOOTMEM
  #9 [00015d8000 - 00015d9000]         BOOTMEM
  #10 [00015d9000 - 00015da000]         BOOTMEM
  #11 [00015da000 - 00015db000]         BOOTMEM
  #12 [00015db000 - 00015dc000]         BOOTMEM
  #13 [0002000000 - 0002540000]        MEMMAP 0
  #14 [00015dc000 - 00015f4000]         BOOTMEM
  #15 [00016c8000 - 00016e0000]         BOOTMEM
  #16 [00015f4000 - 00015f5000]         BOOTMEM
  #17 [00015f5000 - 00015f6000]         BOOTMEM
  #18 [00016e0000 - 00016e1000]         BOOTMEM
  #19 [00016e1000 - 00016e10e0]         BOOTMEM
  #20 [00015d6f80 - 00015d6fe8]         BOOTMEM
  #21 [00016e1100 - 00016e1168]         BOOTMEM
  #22 [00016e1180 - 00016e11e8]         BOOTMEM
  #23 [00016e1200 - 00016e129d]         BOOTMEM
  #24 [00016e12c0 - 00016e135d]         BOOTMEM
  #25 [00016e4000 - 00016ff000]         BOOTMEM
  #26 [00016e3380 - 00016e3388]         BOOTMEM
  #27 [00016e33c0 - 00016e33c8]         BOOTMEM
  #28 [00016e3400 - 00016e3404]         BOOTMEM
  #29 [00016e3440 - 00016e3448]         BOOTMEM
  #30 [00016e3480 - 00016e3580]         BOOTMEM
  #31 [00016e3580 - 00016e35c8]         BOOTMEM
  #32 [00016e3600 - 00016e3648]         BOOTMEM
  #33 [00016ff000 - 0001703000]         BOOTMEM
  #34 [0001703000 - 0001783000]         BOOTMEM
  #35 [0001783000 - 00017c3000]         BOOTMEM
  #36 [0002540000 - 0006540000]         BOOTMEM
  #37 [00017c3000 - 00017e3000]         BOOTMEM
  #38 [00017e3000 - 0001823000]         BOOTMEM
  #39 [0000003880 - 000000b880]         BOOTMEM
Memory: 312840k/393216k available (3476k kernel code, 388k absent, 79988k reserved, 1523k data, 440k init)
SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:4352 nr_irqs:256
Console: colour dummy device 80x25
console [tty0] enabled
console [hvc0] enabled
installing Xen timer for CPU 0
Detected 2611.728 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 5223.45 BogoMIPS (lpj=26117280)
Mount-cache hash table entries: 256
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
Performance Events:
no APIC, boot with the "lapic" boot parameter to force-enable it.
no hardware sampling interrupt available.
AMD PMU driver.
... version:                0
... bit width:              48
... generic registers:      4
... value mask:             0000ffffffffffff
... max period:             00007fffffffffff
... fixed-purpose events:   0
... event mask:             000000000000000f
SMP alternatives: switching to UP code
Freeing SMP alternatives: 36k freed
cpu 0 spinlock event irq 254
Brought up 1 CPUs
devtmpfs: initialized
Grant table initialized
NET: Registered protocol family 16
PCI: setting up Xen PCI frontend stub
bio: create slab <bio-0> at 0
xen_balloon: Initialising balloon driver.
vgaarb: loaded
PCI: System does not support PCI
PCI: System does not support PCI
Switching to clocksource xen
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
TCP established hash table entries: 16384 (order: 6, 262144 bytes)
TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
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
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880002540000 - ffff880006540000
software IO TLB at phys 0x2540000 - 0x6540000
platform rtc_cmos: registered platform RTC device (no PNP device found)
audit: initializing netlink socket (disabled)
type=2000 audit(1279142453.515: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 611
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
ALI M7101 PMU not found.
Event-channel device installed.
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
pcifront pci-0: claiming resource 0000:00:00.2/0
Non-volatile memory driver v1.3
Hangcheck: starting hangcheck timer 0.9.0 (tick is 180 seconds, margin is 60 seconds).
Hangcheck: Using get_cycles().
brd: module loaded
loop: module loaded
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
Initialising Xen virtual ethernet driver.
blkfront: xvda1: barriers enabled
blkfront: xvda9: barriers enabled
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@xxxxxxxxxxxx>
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
cpuidle: using governor ladder
cpuidle: using governor menu
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (2444 buckets, 9776 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
NET: Registered protocol family 17
registered taskstats version 1
XENBUS: Device with no driver: device/console/0
REISERFS (device xvda1): found reiserfs format "3.6" with standard journal
REISERFS (device xvda1): using ordered data mode
REISERFS (device xvda1): journal params: device xvda1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
REISERFS (device xvda1): checking transaction log (xvda1)
REISERFS (device xvda1): Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly on device 202:1.
devtmpfs: mounted
Freeing unused kernel memory: 440k freed
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:00:00.2: enabling device (0000 -> 0002)
ehci_hcd 0000:00:00.2: Xen PCI enabling IRQ: 11
ehci_hcd 0000:00:00.2: EHCI Host Controller
ehci_hcd 0000:00:00.2: new USB bus registered, assigned bus number 1
------------[ cut here ]------------
WARNING: at kernel/smp.c:421 smp_call_function_many+0xb6/0x200()
Modules linked in: ehci_hcd(+) usbcore
Pid: 965, comm: modprobe Not tainted 2.6.34-xen #3
Call Trace:
 [<ffffffff8106b116>] ? smp_call_function_many+0xb6/0x200
 [<ffffffff8103fb28>] warn_slowpath_common+0x78/0xb0
 [<ffffffff8102f110>] ? do_flush_tlb_all+0x0/0x60
 [<ffffffff8102f110>] ? do_flush_tlb_all+0x0/0x60
 [<ffffffff8103fb6f>] warn_slowpath_null+0xf/0x20
 [<ffffffff8106b116>] smp_call_function_many+0xb6/0x200
 [<ffffffff8102f110>] ? do_flush_tlb_all+0x0/0x60
 [<ffffffff8106b27d>] smp_call_function+0x1d/0x30
 [<ffffffff8104544f>] on_each_cpu+0x1f/0x50
 [<ffffffff8102ef47>] flush_tlb_all+0x17/0x20
 [<ffffffff810b61aa>] __purge_vmap_area_lazy+0x10a/0x210
 [<ffffffff810b694d>] vm_unmap_aliases+0x1ad/0x1c0
 [<ffffffff810065af>] xen_create_contiguous_region+0x5f/0x120
 [<ffffffff81006edd>] ? xen_force_evtchn_callback+0xd/0x10
 [<ffffffff8120885d>] xen_swiotlb_alloc_coherent+0x7d/0x110
 [<ffffffff810bd1ad>] ? dma_pool_alloc+0x7d/0x2c0
 [<ffffffff810076df>] ? xen_restore_fl_direct_end+0x0/0x1
 [<ffffffff810bd21f>] dma_pool_alloc+0xef/0x2c0
 [<ffffffff810407c9>] ? vprintk+0x1a9/0x430
 [<ffffffff811f7e2a>] ? strlcpy+0x4a/0x60
 [<ffffffffa0026ed7>] ehci_qh_alloc+0x47/0xd0 [ehci_hcd]
 [<ffffffffa002770f>] ehci_pci_setup+0x20f/0x960 [ehci_hcd]
 [<ffffffffa00066b9>] usb_add_hcd+0x1b9/0x600 [usbcore]
 [<ffffffffa0013c09>] usb_hcd_pci_probe+0x159/0x2d0 [usbcore]
 [<ffffffff8120f832>] local_pci_probe+0x12/0x20
 [<ffffffff8120fb00>] pci_device_probe+0x80/0xb0
 [<ffffffff8124a0ba>] ? driver_sysfs_add+0x5a/0x90
 [<ffffffff8124a1f6>] driver_probe_device+0x86/0x190
 [<ffffffff8124a300>] ? __driver_attach+0x0/0xa0
 [<ffffffff8124a393>] __driver_attach+0x93/0xa0
 [<ffffffff8124a300>] ? __driver_attach+0x0/0xa0
 [<ffffffff812496d8>] bus_for_each_dev+0x68/0x90
 [<ffffffff8124a059>] driver_attach+0x19/0x20
 [<ffffffff81249978>] bus_add_driver+0xb8/0x260
 [<ffffffff8124a688>] driver_register+0x78/0x140
 [<ffffffff8135fce3>] ? printk+0x3c/0x41
 [<ffffffff8120fd91>] __pci_register_driver+0x51/0xd0
 [<ffffffffa002d000>] ? ehci_hcd_init+0x0/0x7b [ehci_hcd]
 [<ffffffffa002d06d>] ehci_hcd_init+0x6d/0x7b [ehci_hcd]
 [<ffffffff81002047>] do_one_initcall+0x37/0x1a0
 [<ffffffff8106fb87>] sys_init_module+0xd7/0x250
 [<ffffffff8100adc2>] system_call_fastpath+0x16/0x1b
---[ end trace d2aa0c2de1a5a72d ]---
ehci_hcd 0000:00:00.2: debug port 1
ehci_hcd 0000:00:00.2: irq 11, io mem 0xfe4ff000
ehci_hcd 0000:00:00.2: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.34-xen ehci_hcd
usb usb1: SerialNumber: 0000:00:00.2
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd 0000:00:00.0: enabling device (0000 -> 0002)
ohci_hcd 0000:00:00.0: Xen PCI enabling IRQ: 10
ohci_hcd 0000:00:00.0: OHCI Host Controller
ohci_hcd 0000:00:00.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:00.0: irq 10, io mem 0xfe4f3000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: OHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.34-xen ohci_hcd
usb usb2: SerialNumber: 0000:00:00.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
usb 1-2: new high speed USB device using ehci_hcd and address 2
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
ehci_hcd 0000:00:00.2: Unlink after no-IRQ? Controller is probably using the wrong IRQ.
usb 1-2: device not accepting address 2, error -110
usb 1-2: new high speed USB device using ehci_hcd and address 3
usb 1-2: device not accepting address 3, error -110
usb 1-2: new high speed USB device using ehci_hcd and address 4
usb 1-2: device not accepting address 4, error -110
usb 1-2: new high speed USB device using ehci_hcd and address 5
usb 1-2: device not accepting address 5, error -110
hub 1-0:1.0: unable to enumerate USB device on port 2
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
done.
Activating swap...Adding 131068k swap on /dev/xvda9. Priority:-1 extents:1 across:131068k SS
done.

Checking root file system...fsck from util-linux-ng 2.16.2
Reiserfs super block in block 16 on 0xca01 of format 3.6 with standard journal
Blocks (total/free): 1048576/509631 by 4096 bytes
Filesystem is clean
done.
Cleaning up ifupdown....
Loading kernel modules...USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
done.
Checking file systems...fsck from util-linux-ng 2.16.2
done.
Setting up networking....
Mounting local filesystems...done.
Activating swapfile swap...done.
Cleaning up temporary files....
Configuring network interfaces...done.
Setting kernel variables (/etc/sysctl.conf)...done.
Setting kernel variables (/etc/sysctl.d/bindv6only.conf)...done.
Cleaning up temporary files....
Setting sensors limits.
INIT: Entering runlevel: 3
[...]

The domU starts up fine:
atlas:~# uname -a
Linux atlas.floresti.mikesnet.ro 2.6.34-xen #3 SMP Wed Jul 14 19:59:44 UTC 2010 x86_64 GNU/Linux

It "sees" the PCI device:
atlas:~# lspci
00:00.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:00.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller

But lsub fails:
atlas:~# lsusb -t
Segmentation fault

I am using these pvops kernels:
- dom0: xen/stable-2.6.32.x from git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git - domU: pv/merge.2.6.34 from git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git

I am running Debian on both systems.

Anything I could do to better debug this issue? Where to report it?

Here are a few more details:
home-xen:~# xm info
host                   : home-xen
release                : 2.6.32-5-xen-amd64
version                : #1 SMP Tue Jun 1 06:38:33 UTC 2010
machine                : x86_64
nr_cpus                : 4
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 1
cpu_mhz                : 2611
hw_caps : 178bf3ff:efd3fbff:00000000:00001310:00802001:00000000:000037ff:00000000
virt_caps              :
total_memory           : 4094
free_memory            : 3276
node_to_cpu            : node0:0-3
node_to_memory         : node0:3276
node_to_dma32_mem      : node0:3067
max_node_id            : 0
xen_major              : 4
xen_minor              : 0
xen_extra              : .1-rc3
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : unavailable
xen_commandline : dom0_mem=393216 dom0_max_vcpus=1 hap sched=credit vga=current cpufreq=xen
cc_compiler            : gcc version 4.4.4 (Debian 4.4.4-5)
cc_compile_by          : waldi
cc_compile_domain      : debian.org
cc_compile_date        : Wed Jun 30 14:32:51 UTC 2010
xend_config_format     : 4

home-xen:~# cat /proc/cmdline
root=/dev/mapper/homepc-dom0--testing ro selinux=0 rootdelay=5 panic=5 nofb text nousb nosmp console=tty0 maxcpus=1 loopback.nloopbacks=16 xen-pciback.permissive xen-pciback.hide=(00:12.0)(00:12.2)(00:13.0)(00:13.2)(00:14.2)(00:16.0)(00:16.2)(01:05.0)(03:00.0)(04:00.0)(05:05.0)(05:05.1)(05:05.2)(05:06.0) pci=resource_alignment=00:12.2;00:13.2;03:00.2

home-xen:~# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge Alternate
00:01.0 PCI bridge: ASUSTeK Computer Inc. RS880 PCI to PCI bridge (int gfx)
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0) 00:09.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 4) 00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 5) 00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode] (rev 40) 00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 41)
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller (rev 40)
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller
00:15.0 PCI bridge: ATI Technologies Inc Device 43a0
00:15.1 PCI bridge: ATI Technologies Inc Device 43a1
00:16.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:16.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control 01:05.0 VGA compatible controller: ATI Technologies Inc RS880 [Radeon HD 4250] 02:00.0 VGA compatible controller: ATI Technologies Inc Cedar PRO [Radeon HD 5450] 02:00.1 Audio device: ATI Technologies Inc Manhattan HDMI Audio [Mobility Radeon HD 5000 Series] 03:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller 03:00.1 IDE interface: VIA Technologies, Inc. PATA IDE Host Controller (rev a0) 04:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03) 05:05.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61) 05:05.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
05:05.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
05:06.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] (rev 01) 07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

home-xen:~# xm pci-list-assignable-devices
0000:04:00.0
0000:01:05.0
0000:00:12.0
0000:00:12.2
0000:00:13.0
0000:00:13.2
0000:00:14.2
0000:00:16.0
0000:00:16.2

home-xen:~# xm dmesg
(XEN) Xen version 4.0.1-rc3 (Debian 4.0.1~rc3-1) (waldi@xxxxxxxxxx) (gcc version 4.4.4 (Debian 4.4.4-5) ) Wed Jun 30 14:32:51 UTC 2010 (XEN) Command line: dom0_mem=393216 dom0_max_vcpus=1 hap sched=credit vga=current cpufreq=xen
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN)  Found 6 MBR signatures
(XEN)  Found 6 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 0000000000094400 (usable)
(XEN)  0000000000094400 - 00000000000a0000 (reserved)
(XEN)  00000000000e2000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 00000000c7e90000 (usable)
(XEN)  00000000c7e90000 - 00000000c7ea8000 (ACPI data)
(XEN)  00000000c7ea8000 - 00000000c7ed0000 (ACPI NVS)
(XEN)  00000000c7ed0000 - 00000000c7f00000 (reserved)
(XEN)  00000000ffa00000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 0000000138000000 (usable)
(XEN) ACPI: RSDP 000FBBB0, 0024 (r2 ACPIAM)
(XEN) ACPI: XSDT C7E90100, 005C (r1 053110 XSDT0938 20100531 MSFT       97)
(XEN) ACPI: FACP C7E90290, 00F4 (r3 053110 FACP0938 20100531 MSFT       97)
(XEN) ACPI: DSDT C7E90450, F2DB (r1  A1638 A1638001        1 INTL 20060113)
(XEN) ACPI: FACS C7EA8000, 0040
(XEN) ACPI: APIC C7E90390, 007C (r1 053110 APIC0938 20100531 MSFT       97)
(XEN) ACPI: MCFG C7E90410, 003C (r1 053110 OEMMCFG  20100531 MSFT       97)
(XEN) ACPI: OEMB C7EA8040, 0072 (r1 053110 OEMB0938 20100531 MSFT       97)
(XEN) ACPI: SRAT C7E9F8A0, 00E8 (r1 AMD    FAM_F_10        2 AMD         1)
(XEN) ACPI: HPET C7E9F990, 0038 (r1 053110 OEMHPET  20100531 MSFT       97)
(XEN) ACPI: SSDT C7E9F9D0, 088C (r1 A M I  POWERNOW        1 AMD         1)
(XEN) System RAM: 4094MB (4192400kB)
(XEN) Domain heap initialised
(XEN) Processor #0 0:4 APIC version 16
(XEN) Processor #1 0:4 APIC version 16
(XEN) Processor #2 0:4 APIC version 16
(XEN) Processor #3 0:4 APIC version 16
(XEN) IOAPIC[0]: apic_id 4, version 33, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2611.728 MHz processor.
(XEN) Initing memory sharing.
(XEN) CPU0: AMD SVM Extension is disabled in BIOS.
(XEN) SVM: failed to initialise.
(XEN) AMD-Vi: IOMMU not found!
(XEN) I/O virtualisation disabled
(XEN) Total of 4 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using new ACK method
(XEN) TSC is reliable, synchronization unnecessary
(XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 16 KiB.
(XEN) Brought up 4 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x16c1000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 0000000130000000->0000000134000000 (81920 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff81000000->ffffffff816c1000
(XEN)  Init. ramdisk: ffffffff816c1000->ffffffff831d7a00
(XEN)  Phys-Mach map: ffffffff831d8000->ffffffff83298000
(XEN)  Start info:    ffffffff83298000->ffffffff832984b4
(XEN)  Page tables:   ffffffff83299000->ffffffff832b6000
(XEN)  Boot stack:    ffffffff832b6000->ffffffff832b7000
(XEN)  TOTAL:         ffffffff80000000->ffffffff83400000
(XEN)  ENTRY ADDRESS: ffffffff81501200
(XEN) Dom0 has maximum 1 VCPUs
(XEN) Scrubbing Free RAM: ....................................done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 176kB init memory.
(XEN) traps.c:2293:d0 Domain attempted WRMSR 00000000c0010004 from 000075c1:372a21f4 to 00000000:00000000. (XEN) traps.c:2293:d0 Domain attempted WRMSR 00000000c0010000 from 00000108:919af2af to 00000000:00430076. (XEN) mm.c:860:d1 Error getting mfn 18001 (pfn 5555555555555555) from L1 entry 8000000018001463 for l1e_owner=1, pg_owner=32753 (XEN) mm.c:860:d2 Error getting mfn 18001 (pfn 5555555555555555) from L1 entry 8000000018001463 for l1e_owner=2, pg_owner=32753 (XEN) mm.c:860:d3 Error getting mfn 18001 (pfn 5555555555555555) from L1 entry 8000000018001463 for l1e_owner=3, pg_owner=32753

Thank you!

--
Deac Mihai-Adrian

W: www.mikesoftware.com
P: +40-745-256.364, +40-723-85.44.44
F: +40-264-566.033


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] PCI passtrough with Xen 4.0.0-rc3, Ady Deac <=