[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] problem with pci path through - device not present in DomU


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Marcus Novy" <marcus.novy@xxxxxx>
  • Date: Mon, 4 May 2009 21:05:24 +0200
  • Delivery-date: Tue, 05 May 2009 04:08:43 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcnM60a0oUnlglkVQm6fEL2CZ48pcw==

Hello,

I'm running 6.26-2-xen-amd64 with xen-hypervisor-3.2-1-amd64. Now I try to
pass through a controller card to WHS, at the moment without success because
the card isn't present in DomU. At the first moment I guess it's a windows
problem ;) so I'd tried to boot a Knoppix .iso but same problem there, the
passed through device isn't present in DomU.

Here is my system configuration:
Mainboard: C2SBC-Q
CPU: C2D E8200 
VT & VT-d enabled in Bios

___dmesg | grep pci after I started the Guest gives me:___
[    0.000000] Command line: root=/dev/mapper/raffmaster-root ro
console=tty0 pciback.hide=(0000:11:0a.0)
[    0.000000] Kernel command line: root=/dev/mapper/raffmaster-root ro
console=tty0 pciback.hide=(0000:11:0a.0)
[    0.381894] ACPI: bus type pci registered
[    0.402966] pci 0000:00:1f.0: quirk: region 1000-107f claimed by ICH6
ACPI/GPIO/TCO
[    0.403047] pci 0000:00:1f.0: quirk: region 1180-11bf claimed by ICH6
GPIO
[    0.415517] pnp 00:01: PNP0c02: calling
quirk_system_pci_resources+0x0/0x15c
[    0.451515] pciback 0000:11:0a.0: seizing device
[    0.536500] pci 0000:00:02.0: Boot video device
[    0.536500] Allocate Port Service[0000:00:1c.0:pcie00]
[    0.536500] Allocate Port Service[0000:00:1c.0:pcie02]
[    0.536500] Allocate Port Service[0000:00:1c.0:pcie03]
[    0.536500] Allocate Port Service[0000:00:1c.4:pcie00]
[    0.536500] Allocate Port Service[0000:00:1c.4:pcie02]
[    0.536500] Allocate Port Service[0000:00:1c.4:pcie03]
[ 6400.511874] pciback: vpci: 0000:11:0a.0: assign to virtual slot 0

___menu.lst:___
title           Xen 3.2-1-amd64 / Debian GNU/Linux, kernel
2.6.26-2-xen-amd64
root            (hd0,0)
kernel          /xen-3.2-1-amd64.gz vtd=1 iommu=1
module          /vmlinuz-2.6.26-2-xen-amd64 root=/dev/mapper/raffmaster-root
ro console=tty0 pciback.hide=(0000:11:0a.0)
module          /initrd.img-2.6.26-2-xen-amd64


___guest config:___
kernel = '/usr/lib/xen-3.2-1/boot/hvmloader'
builder = 'hvm'
memory  = '1024'
device_model = '/usr/lib/xen-3.2-1/bin/qemu-dm'
# Laufwerke
disk = [ 'file:/root/windows_home_server_dvd.iso,ioemu:hdc:cdrom,r' ]
# Hostname
name = 'test'
#  Networking
#dhcp = dhcp
#vif = ['type=ioemu, bridge=xenbr0']
#vif = [ 'mac=00:16:3e:38:e0:f9, bridge=intern' ]
pci = [ '0000:11:0a.0' ]
boot='d'
vnc=1
vncviewer=1
sdl=0
acpi=0
apic=0


___xend.log:___
[2009-05-04 09:46:50 2332] DEBUG (XendDomainInfo:84)
XendDomainInfo.create(['vm', ['name', 'test'], ['memory', '1024'], ['vcpus',
1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image',
['hvm', ['kernel', '/usr/lib/xen-3.2-1/boot/hvmloader'], ['args',
'VNC_VIEWER=127.0.1.1:5501 '], ['pae', 1], ['vcpus', 1], ['boot', 'd'],
['fda', ''], ['fdb', ''], ['timer_mode', 0], ['localtime', 0], ['serial',
''], ['stdvga', 0], ['isa', 0], ['nographic', 0], ['soundhw', ''], ['vnc',
1], ['vncunused', 1], ['sdl', 0], ['xauthority', '/root/.Xauthority'],
['rtc_timeoffset', '0'], ['monitor', 0], ['acpi', 0], ['apic', 0], ['usb',
0], ['usbdevice', ''], ['keymap', ''], ['pci', [['0x0000', '0x11', '0x0a',
'0x0']]], ['guest_os_type', 'default'], ['device_model',
'/usr/lib/xen-3.2-1/bin/qemu-dm']]], ['device', ['vbd', ['uname',
'file:/root/knoppix.iso'], ['dev', 'ioemu:hdc:cdrom'], ['mode', 'r']]],
['device', ['pci', ['dev', ['domain', '0x0000'], ['bus', '0x11'], ['slot',
'0x0a'], ['func', '0x0']]]]])
[2009-05-04 09:46:50 2332] DEBUG (XendDomainInfo:1618)
XendDomainInfo.constructDomain
[2009-05-04 09:46:50 2332] DEBUG (balloon:132) Balloon: 1067364 KiB free;
need 2048; done.
[2009-05-04 09:46:50 2332] DEBUG (XendDomain:443) Adding Domain: 2
[2009-05-04 09:46:50 2332] DEBUG (XendDomainInfo:1703)
XendDomainInfo.initDomain: 2 256
[2009-05-04 09:46:50 2332] DEBUG (image:234) No VNC passwd configured for
vfb access
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: boot, val: d
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: fda, val: None
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: fdb, val: None
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: soundhw, val: None
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: localtime, val: 0
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: serial, val: None
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: std-vga, val: 0
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: isa, val: 0
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: acpi, val: 0
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: usb, val: 0
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: usbdevice, val: None
[2009-05-04 09:46:50 2332] DEBUG (image:476) args: pci, val: [['0x0000',
'0x11', '0x0a', '0x0']]
[2009-05-04 09:46:50 2332] DEBUG (XendDomainInfo:1738)
_initDomain:shadow_memory=0x0, memory_static_max=0x40000000,
memory_static_min=0x0.
[2009-05-04 09:46:50 2332] DEBUG (balloon:132) Balloon: 1066072 KiB free;
need 1065984; done.
[2009-05-04 09:46:50 2332] INFO (image:139) buildDomain os=hvm dom=2 vcpus=1
[2009-05-04 09:46:50 2332] DEBUG (image:523) domid          = 2
[2009-05-04 09:46:50 2332] DEBUG (image:524) image          =
/usr/lib/xen-3.2-1/boot/hvmloader
[2009-05-04 09:46:50 2332] DEBUG (image:525) store_evtchn   = 2
[2009-05-04 09:46:50 2332] DEBUG (image:526) memsize        = 1024
[2009-05-04 09:46:50 2332] DEBUG (image:527) vcpus          = 1
[2009-05-04 09:46:50 2332] DEBUG (image:528) acpi           = 0
[2009-05-04 09:46:50 2332] DEBUG (image:529) apic           = 0
[2009-05-04 09:46:50 2332] INFO (XendDomainInfo:1514) createDevice: vfb :
{'vncunused': 1, 'other_config': {'vncunused': 1, 'type': 'vnc'}, 'type':
'vnc', 'uuid': '6d2c1c11-fe7d-6be5-5bc1-1f66ba76bc41'}
[2009-05-04 09:46:50 2332] DEBUG (DevController:118) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vfb/2/0'} to /local/domain/2/device/vfb/0.
[2009-05-04 09:46:50 2332] DEBUG (DevController:120) DevController: writing
{'vncunused': '1', 'domain': 'test', 'frontend':
'/local/domain/2/device/vfb/0', 'uuid':
'6d2c1c11-fe7d-6be5-5bc1-1f66ba76bc41', 'state': '1', 'online': '1',
'frontend-id': '2', 'type': 'vnc'} to /local/domain/0/backend/vfb/2/0.
[2009-05-04 09:46:50 2332] INFO (XendDomainInfo:1514) createDevice: vbd :
{'uuid': 'c845bb27-cdbb-a368-7212-28d76d99a198', 'bootable': 1, 'driver':
'ioemu', 'dev': 'ioemu:hdc:cdrom', 'uname': 'file:/root/knoppix.iso',
'mode': 'r'}
[2009-05-04 09:46:50 2332] DEBUG (DevController:118) DevController: writing
{'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom',
'state': '1', 'backend': '/local/domain/0/backend/vbd/2/5632'} to
/local/domain/2/device/vbd/5632.
[2009-05-04 09:46:50 2332] DEBUG (DevController:120) DevController: writing
{'domain': 'test', 'frontend': '/local/domain/2/device/vbd/5632', 'uuid':
'c845bb27-cdbb-a368-7212-28d76d99a198', 'dev': 'hdc', 'state': '1',
'params': '/root/knoppix.iso', 'mode': 'r', 'online': '1', 'frontend-id':
'2', 'type': 'file'} to /local/domain/0/backend/vbd/2/5632.
[2009-05-04 09:46:50 2332] INFO (XendDomainInfo:1514) createDevice: pci :
{'devs': [{'slot': '0x0a', 'bus': '0x11', 'domain': '0x0000', 'func':
'0x0'}], 'uuid': 'e4b1c87e-663e-658c-b352-83fecb702ab9'}
[2009-05-04 09:46:50 2332] INFO (pciquirk:90) NO quirks found for PCI device
[1095:3114:1095:3114]
[2009-05-04 09:46:50 2332] DEBUG (pciquirk:132) Permissive mode NOT enabled
for PCI device [1095:3114:1095:3114]
[2009-05-04 09:46:50 2332] DEBUG (pciif:153) pci: enabling ioport 0x3048/0x8
[2009-05-04 09:46:50 2332] DEBUG (pciif:153) pci: enabling ioport 0x303c/0x4
[2009-05-04 09:46:50 2332] DEBUG (pciif:153) pci: enabling ioport 0x3040/0x8
[2009-05-04 09:46:50 2332] DEBUG (pciif:153) pci: enabling ioport 0x3038/0x4
[2009-05-04 09:46:50 2332] DEBUG (pciif:153) pci: enabling ioport
0x3010/0x10
[2009-05-04 09:46:50 2332] DEBUG (pciif:167) pci: enabling iomem
0xd0200000/0x400 pfn 0xd0200/0x1
[2009-05-04 09:46:50 2332] DEBUG (pciif:167) pci: enabling iomem
0xd0300000/0x80000 pfn 0xd0300/0x80
[2009-05-04 09:46:50 2332] DEBUG (pciif:177) pci: enabling irq 20
[2009-05-04 09:46:50 2332] DEBUG (DevController:118) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/pci/2/0'} to /local/domain/2/device/pci/0.
[2009-05-04 09:46:50 2332] DEBUG (DevController:120) DevController: writing
{'domain': 'test', 'frontend': '/local/domain/2/device/pci/0', 'uuid':
'e4b1c87e-663e-658c-b352-83fecb702ab9', 'dev-0': '0000:11:0a.00', 'state':
'1', 'online': '1', 'frontend-id': '2', 'num_devs': '1'} to
/local/domain/0/backend/pci/2/0.
[2009-05-04 09:46:50 2332] INFO (image:289) spawning device models:
/usr/lib/xen-3.2-1/bin/qemu-dm ['/usr/lib/xen-3.2-1/bin/qemu-dm', '-d', '2',
'-domain-name', 'test', '-vnc', '0.0.0.0:0', '-vncunused', '-vcpus', '1',
'-boot', 'd', '-pci', "[['0x0000', '0x11', '0x0a', '0x0']]", '-M', 'xenfv']
[2009-05-04 09:46:50 2332] INFO (image:293) device model pid: 2712
[2009-05-04 09:46:50 2332] DEBUG (XendDomainInfo:2195) Storing VM details:
{'on_xend_stop': 'ignore', 'shadow_memory': '9', 'uuid':
'e1a5cf63-bbc3-dbce-319d-fa44739a70d1', 'on_reboot': 'restart',
'start_time': '1241423210.83', 'on_poweroff': 'destroy', 'on_xend_start':
'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1',
'vcpu_avail': '1', 'image': "(hvm (kernel /usr/lib/xen-3.2-1/boot/hvmloader)
(args 'VNC_VIEWER=127.0.1.1:5501 ') (acpi 0) (apic 0) (boot d) (device_model
/usr/lib/xen-3.2-1/bin/qemu-dm) (isa 0) (localtime 0) (monitor 0) (nographic
0) (pae 1) (rtc_timeoffset 0) (sdl 0) (stdvga 0) (usb 0) (vnc 1) (timer_mode
0) (vncunused 1) (xauthority /root/.Xauthority) (pci ((0x0000 0x11 0x0a
0x0))) (guest_os_type default) (notes (SUSPEND_CANCEL 1)))", 'name': 'test'}
[2009-05-04 09:46:50 2332] DEBUG (XendDomainInfo:1008) Storing domain
details: {'console/port': '3', 'name': 'test', 'console/limit': '1048576',
'store/port': '2', 'vm': '/vm/e1a5cf63-bbc3-dbce-319d-fa44739a70d1',
'domid': '2', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online',
'memory/target': '1048576',
'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref':
'262142', 'console/type': 'ioemu'}
[2009-05-04 09:46:50 2332] DEBUG (DevController:118) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/console/2/0'} to /local/domain/2/device/console/0.
[2009-05-04 09:46:50 2332] DEBUG (DevController:120) DevController: writing
{'domain': 'test', 'frontend': '/local/domain/2/device/console/0', 'uuid':
'a074a569-e27f-9469-fb70-d3450ea7e712', 'frontend-id': '2', 'state': '1',
'location': '3', 'online': '1', 'protocol': 'vt100'} to
/local/domain/0/backend/console/2/0.
[2009-05-04 09:46:50 2332] DEBUG (XendDomainInfo:1092)
XendDomainInfo.handleShutdownWatch
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
vif.
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
vbd.
[2009-05-04 09:46:50 2332] DEBUG (DevController:156) Waiting for 5632.
[2009-05-04 09:46:50 2332] DEBUG (DevController:595) hotplugStatusCallback
/local/domain/0/backend/vbd/2/5632/hotplug-status.
[2009-05-04 09:46:50 2332] DEBUG (DevController:595) hotplugStatusCallback
/local/domain/0/backend/vbd/2/5632/hotplug-status.
[2009-05-04 09:46:50 2332] DEBUG (DevController:609) hotplugStatusCallback
1.
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
irq.
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
vkbd.
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
vfb.
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
console.
[2009-05-04 09:46:50 2332] DEBUG (DevController:156) Waiting for 0.
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
pci.
[2009-05-04 09:46:50 2332] DEBUG (DevController:156) Waiting for 0.
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
ioports.
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
tap.
[2009-05-04 09:46:50 2332] DEBUG (DevController:151) Waiting for devices
vtpm.
[2009-05-04 09:46:50 2332] INFO (XendDomain:1165) Domain test (2) unpaused.

Regards,
Marcus


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.