Hi,
>I'm testing driver domain(PCI passthru) on Fedora Core 5 + xen-3.0.2-2.
>And I got trouble in DomU configuration.
I solved this problem.
I made xen with KERNELS="linux-2.6-xen0 linux-2.6-xenU".
However, CONFIG_PCI/CONFIG_XEN_PCIDEV_FRONTEND is not set
in buildconfig/linux-defconfig_xenU_x86_32.
I modified this file manually.
p.s. In linux-defconfig_xenU_ia64, CONFIG_PCI had been set to 'y'.
I don't know why CONFIG_PCI turned disabled in linux-defconfig_xenU_x86_32.
cheers,
-----
Nishikawa.
I wrote:
>Hi,
>
>I'm testing driver domain(PCI passthru) on Fedora Core 5 + xen-3.0.2-2.
>And I got trouble in DomU configuration.
>
>I compiled xen from source(xen-3.0.2-src.tgz) and installed it.
>I changed grub.conf, add pciback.hide=(03:0b.0) .
>This is a PCI Bus-number of my second NIC.
>That NIC disappeared from ifconfig in Dom0.
>
>Then, I start DomU like this, xm create pci=03:0b.0 -c guest1.conf .
>However, NIC cannot see in the guest.
>The lspci command said `pcilib: Cannot open /proc/bus/pci
>lspci: Cannot find any working access method.' in domU.
>
>Is something wrong?
>I also tried adding "pci=['03:0b.0']" line in guest configuration.
>It also failed.
>
>In boot message of domU, XENBUS timeout message had been indicated.
> | Xen virtual console successfully installed as tty1
> | Event-channel device installed.
> | netfront: Initialising virtual ethernet driver.
> | Registering block device major 3
> | mice: PS/2 mouse device common for all mice
> | NET: Registered protocol family 2
> | IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
> | TCP established hash table entries: 16384 (order: 5, 131072 bytes)
> | TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
> | TCP: Hash tables configured (established 16384 bind 16384)
> | TCP reno registered
> | TCP bic registered
> | NET: Registered protocol family 1
> | NET: Registered protocol family 17
> | Using IPI No-Shortcut mode
>*| XENBUS: Timeout connecting to devices!
> | Freeing unused kernel memory: 132k freed
>
>Thanks in advance!
>---
>Nishikawa.
>
>
>----- attached part of xend.log -----
>[2006-10-03 22:28:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:178)
>XendDomainInfo.create(['vm', ['name', 'guest1'], ['memory', 256], ['vcp
>us', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.16-xenU'],
>['ramdisk', '/boot/initrd-2.6.16-xenU.img'], ['root', '/dev/hda1 ro']]
>], ['device', ['vbd', ['uname', 'file:/test/xen/guest1.img'], ['dev', 'hda1'],
>['mode', 'w']]], ['device', ['pci', ['dev', ['domain', '0x0']
>, ['bus', '0x03'], ['slot', '0x0b'], ['func', '0x0']]]], ['device', ['vif',
>['mac', '02:16:3e:00:00:12']]]])
>[2006-10-03 22:28:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:284)
>parseConfig: config is ['vm', ['name', 'guest1'], ['memory', 256], ['vc
>pus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.16-xenU'],
>['ramdisk', '/boot/initrd-2.6.16-xenU.img'], ['root', '/dev/hda1 ro']
>]], ['device', ['vbd', ['uname', 'file:/test/xen/guest1.img'], ['dev',
>'hda1'], ['mode', 'w']]], ['device', ['pci', ['dev', ['domain', '0x0'
>], ['bus', '0x03'], ['slot', '0x0b'], ['func', '0x0']]]], ['device', ['vif',
>['mac', '02:16:3e:00:00:12']]]]
>[2006-10-03 22:28:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:380)
>parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None
>, 'on_reboot': None, 'image': ['linux', ['kernel',
>'/boot/vmlinuz-2.6.16-xenU'], ['ramdisk', '/boot/initrd-2.6.16-xenU.img'],
>['root', '/dev
>/hda1 ro']], 'on_poweroff': None, 'cpus': None, 'name': 'guest1', 'backend':
>[], 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail': None, 'memory
>': 256, 'device': [('vbd', ['vbd', ['uname', 'file:/test/xen/guest1.img'],
>['dev', 'hda1'], ['mode', 'w']]), ('pci', ['pci', ['dev', ['domai
>n', '0x0'], ['bus', '0x03'], ['slot', '0x0b'], ['func', '0x0']]]), ('vif',
>['vif', ['mac', '02:16:3e:00:00:12']])], 'bootloader': None, 'cpu
>': None, 'maxmem': None}
>[2006-10-03 22:28:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164)
>XendDomainInfo.construct: None 0
>[2006-10-03 22:28:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1196)
>XendDomainInfo.initDomain: 9 1.0
>[2006-10-03 22:28:54 xend] DEBUG (balloon:126) Balloon: free 608; need 257;
>done.
>[2006-10-03 22:28:54 xend] INFO (image:135) buildDomain os=linux dom=9 vcpus=1
>[2006-10-03 22:28:54 xend] DEBUG (image:173) dom = 9
>[2006-10-03 22:28:54 xend] DEBUG (image:174) image =
>/boot/vmlinuz-2.6.16-xenU
>[2006-10-03 22:28:54 xend] DEBUG (image:175) store_evtchn = 1
>[2006-10-03 22:28:54 xend] DEBUG (image:176) console_evtchn = 2
>[2006-10-03 22:28:54 xend] DEBUG (image:177) cmdline = root=/dev/hda1
>ro
>[2006-10-03 22:28:54 xend] DEBUG (image:178) ramdisk =
>/boot/initrd-2.6.16-xenU.img
>[2006-10-03 22:28:54 xend] DEBUG (image:179) vcpus = 1
>[2006-10-03 22:28:54 xend] DEBUG (image:180) features =
>[2006-10-03 22:28:54 xend] DEBUG (DevController:103) DevController: writing
>{'virtual-device': '769', 'backend-id': '0', 'state': '1', 'back
>end': '/local/domain/0/backend/vbd/9/769'} to /local/domain/9/device/vbd/769.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:105) DevController: writing
>{'domain': 'guest1', 'frontend': '/local/domain/9/device/vbd/769
>', 'dev': 'hda1', 'state': '1', 'params': '/test/xen/guest1.img', 'mode': 'w',
>'frontend-id': '9', 'type': 'file'} to /local/domain/0/backen
>d/vbd/9/769.
>[2006-10-03 22:28:54 xend] DEBUG (pciif:129) pci: enabling ioport 0x3000/0x100
>[2006-10-03 22:28:54 xend] DEBUG (pciif:142) pci: enabling iomem
>0xe8200000/0x100 pfn 0xe8200/0x1
>[2006-10-03 22:28:54 xend] DEBUG (pciif:153) pci: enabling irq 18
>[2006-10-03 22:28:54 xend] DEBUG (DevController:103) DevController: writing
>{'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/ba
>ckend/pci/9/0'} to /local/domain/9/device/pci/0.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:105) DevController: writing
>{'domain': 'guest1', 'frontend': '/local/domain/9/device/pci/0',
> 'frontend-id': '9', 'dev-0': '0000:03:0b.00', 'state': '1', 'num_devs': '1'}
> to /local/domain/0/backend/pci/9/0.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:103) DevController: writing
>{'backend-id': '0', 'mac': '02:16:3e:00:00:12', 'handle': '0', '
>state': '1', 'backend': '/local/domain/0/backend/vif/9/0'} to
>/local/domain/9/device/vif/0.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:105) DevController: writing
>{'mac': '02:16:3e:00:00:12', 'state': '1', 'handle': '0', 'scrip
>t': '/etc/xen/scripts/vif-bridge', 'frontend-id': '9', 'domain': 'guest1',
>'frontend': '/local/domain/9/device/vif/0'} to /local/domain/0/ba
>ckend/vif/9/0.
>[2006-10-03 22:28:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:671) Storing
>VM details: {'ssidref': '0', 'uuid': 'b14c5957-e48a-b14b-085c-e
>66ce3bf2bbb', 'on_reboot': 'restart', 'start_time': '1159882134.34',
>'on_poweroff': 'destroy', 'name': 'guest1', 'vcpus': '1', 'vcpu_avail':
> '1', 'memory': '256', 'on_crash': 'restart', 'image': "(linux (kernel
> /boot/vmlinuz-2.6.16-xenU) (ramdisk /boot/initrd-2.6.16-xenU.img) (ro
>ot '/dev/hda1 ro'))", 'maxmem': '256'}
>[2006-10-03 22:28:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:696) Storing
>domain details: {'console/ring-ref': '212855', 'console/port':
>'2', 'name': 'guest1', 'console/limit': '1048576', 'vm':
>'/vm/b14c5957-e48a-b14b-085c-e66ce3bf2bbb', 'domid': '9',
>'cpu/0/availability': 'on
>line', 'memory/target': '262144', 'store/ring-ref': '212856', 'store/port':
>'1'}
>[2006-10-03 22:28:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:877)
>XendDomainInfo.handleShutdownWatch
>[2006-10-03 22:28:54 xend] DEBUG (DevController:132) Waiting for devices vif.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:138) Waiting for 0.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:403) hotplugStatusCallback
>/local/domain/0/backend/vif/9/0/hotplug-status.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:403) hotplugStatusCallback
>/local/domain/0/backend/vif/9/0/hotplug-status.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:417) hotplugStatusCallback 1.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:132) Waiting for devices usb.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:132) Waiting for devices vbd.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:138) Waiting for 769.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:403) hotplugStatusCallback
>/local/domain/0/backend/vbd/9/769/hotplug-status.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:417) hotplugStatusCallback 1.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:132) Waiting for devices irq.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:132) Waiting for devices pci.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:138) Waiting for 0.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:132) Waiting for devices
>ioports.
>[2006-10-03 22:28:54 xend] DEBUG (DevController:132) Waiting for devices vtpm.
>[2006-10-03 22:28:54 xend] INFO (XendDomain:363) Domain guest1 (9) unpaused.
>
>_______________________________________________
>Xen-users mailing list
>Xen-users@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|