Hi,
I have cloned and compiled the latest Xen 3.4 multifunction
pass-through tree, you have published, and it doesn't seem to work.
I did the following:
1. Reboot the machine
2. Binded all the usb devices to pci-back, and made them all to be mmio aligned
3. Run the following command:
xm create /etc/xen/hvm xen_platform_pci=0 pci='00:1a.0'
pci='00:1a.1' pci='00:1a.2' pci='00:1a.7' pci='00:1d.0' pci='00:1d.1'
pci='00:1d.2' pci='00:1d.7'
And i got the following error:
Error: int() argument must be a string or a number, not 'NoneType'
These are the last lines from xend.log:
[2009-07-20 07:04:27 4293] INFO (image:173) buildDomain os=hvm dom=1 vcpus=1
[2009-07-20 07:04:27 4293] DEBUG (image:878) domid = 1
[2009-07-20 07:04:27 4293] DEBUG (image:879) image =
/usr/lib/xen/boot/hvmloader
[2009-07-20 07:04:27 4293] DEBUG (image:880) store_evtchn = 2
[2009-07-20 07:04:27 4293] DEBUG (image:881) memsize = 1024
[2009-07-20 07:04:27 4293] DEBUG (image:882) target = 1024
[2009-07-20 07:04:27 4293] DEBUG (image:883) vcpus = 1
[2009-07-20 07:04:27 4293] DEBUG (image:884) acpi = 1
[2009-07-20 07:04:27 4293] DEBUG (image:885) apic = 1
[2009-07-20 07:04:27 4293] INFO (XendDomainInfo:2137) createDevice:
vfb : {'vncunused': 1, 'other_config': {'vncunused': 1, 'vnclisten':
'0.0.0.0', 'vnc': '1', 'vncdisplay': 1}, 'vnc': '1', 'uuid':
'9c80f0c3-4b17-1385-0e77-456811f835a8', 'vnclisten': '0.0.0.0',
'vncdisplay': 1}
[2009-07-20 07:04:27 4293] DEBUG (DevController:95) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vfb/1/0'} to /local/domain/1/device/vfb/0.
[2009-07-20 07:04:27 4293] DEBUG (DevController:97) DevController:
writing {'vncunused': '1', 'domain': 'hvm', 'vnc': '1', 'uuid':
'9c80f0c3-4b17-1385-0e77-456811f835a8', 'frontend-id': '1',
'vnclisten': '0.0.0.0', 'vncdisplay': '1', 'state': '1', 'online':
'1', 'frontend': '/local/domain/1/device/vfb/0'} to
/local/domain/0/backend/vfb/1/0.
[2009-07-20 07:04:27 4293] INFO (XendDomainInfo:2137) createDevice:
vbd : {'uuid': 'c9b1d34b-f17e-a8ef-995b-19ddb43698de', 'bootable': 1,
'driver': 'paravirtualised', 'dev': 'hda', 'uname':
'file:/root/hvm.img', 'mode': 'w'}
[2009-07-20 07:04:27 4293] DEBUG (DevController:95) DevController:
writing {'backend-id': '0', 'virtual-device': '768', 'device-type':
'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/768'}
to /local/domain/1/device/vbd/768.
[2009-07-20 07:04:27 4293] DEBUG (DevController:97) DevController:
writing {'domain': 'hvm', 'frontend':
'/local/domain/1/device/vbd/768', 'uuid':
'c9b1d34b-f17e-a8ef-995b-19ddb43698de', 'bootable': '1', 'dev': 'hda',
'state': '1', 'params': '/root/hvm.img', 'mode': 'w', 'online': '1',
'frontend-id': '1', 'type': 'file'} to
/local/domain/0/backend/vbd/1/768.
[2009-07-20 07:04:27 4293] INFO (XendDomainInfo:2137) createDevice:
pci : {'devs': [{'slot': '0x1a', 'domain': '0x0000', 'key': '00:1a.0',
'bus': '0x00', 'vdevfn': '0x100', 'func': '0x0', 'uuid':
'ab30139e-c4e1-b15a-3cf5-8565a80dde20'}, {'slot': '0x1a', 'domain':
'0x0000', 'key': '00:1a.1', 'bus': '0x00', 'vdevfn': '0x100', 'func':
'0x1', 'uuid': '3f05ec38-8ea3-0ff6-b1f7-42e5e943fdc0'}, {'slot':
'0x1a', 'domain': '0x0000', 'key': '00:1a.2', 'bus': '0x00', 'vdevfn':
'0x100', 'func': '0x2', 'uuid':
'c3c356a2-5bca-b1a0-79b1-da2c5dd56585'}, {'slot': '0x1a', 'domain':
'0x0000', 'key': '00:1a.7', 'bus': '0x00', 'vdevfn': '0x100', 'func':
'0x7', 'uuid': '1e5cee67-6a31-e08a-d0b8-30a8003d397e'}, {'slot':
'0x1d', 'domain': '0x0000', 'key': '00:1d.0', 'bus': '0x00', 'vdevfn':
'0x100', 'func': '0x0', 'uuid':
'ec145547-bc88-aea4-3762-2e3b33d898f6'}, {'slot': '0x1d', 'domain':
'0x0000', 'key': '00:1d.1', 'bus': '0x00', 'vdevfn': '0x100', 'func':
'0x1', 'uuid': '3bfbd3ed-37ad-3a80-30f6-41ec038edf16'}, {'slot':
'0x1d', 'domain': '0x0000', 'key': '00:1d.2', 'bus': '0x00', 'vdevfn':
'0x100', 'func': '0x2', 'uuid':
'dd56c685-d7b6-4d1b-d083-a460ceeea047'}, {'slot': '0x1d', 'domain':
'0x0000', 'key': '00:1d.7', 'bus': '0x00', 'vdevfn': '0x100', 'func':
'0x7', 'uuid': 'acbd2a9f-eafb-5373-c62e-d9be8dcce275'}], 'uuid':
'68f438d6-891e-bde4-0aab-d3879292ec0d'}
[2009-07-20 07:04:27 4293] DEBUG (pciif:414) pci: register aer watch
/local/domain/0/backend/pci/1/0/aerState
[2009-07-20 07:04:27 4293] DEBUG (DevController:95) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/pci/1/0'} to /local/domain/1/device/pci/0.
[2009-07-20 07:04:27 4293] DEBUG (DevController:97) DevController:
writing {'key-3': '00:1a.7', 'key-2': '00:1a.2', 'key-1': '00:1a.1',
'key-0': '00:1a.0', 'key-7': '00:1d.7', 'key-6': '00:1d.2', 'key-5':
'00:1d.1', 'key-4': '00:1d.0', 'domain': 'hvm', 'frontend':
'/local/domain/1/device/pci/0', 'uuid-4':
'ec145547-bc88-aea4-3762-2e3b33d898f6', 'uuid-5':
'3bfbd3ed-37ad-3a80-30f6-41ec038edf16', 'uuid-6':
'dd56c685-d7b6-4d1b-d083-a460ceeea047', 'uuid-7':
'acbd2a9f-eafb-5373-c62e-d9be8dcce275', 'uuid-0':
'ab30139e-c4e1-b15a-3cf5-8565a80dde20', 'uuid-1':
'3f05ec38-8ea3-0ff6-b1f7-42e5e943fdc0', 'uuid-2':
'c3c356a2-5bca-b1a0-79b1-da2c5dd56585', 'uuid-3':
'1e5cee67-6a31-e08a-d0b8-30a8003d397e', 'uuid':
'68f438d6-891e-bde4-0aab-d3879292ec0d', 'state': '1', 'online': '1',
'power_mgmt': '0', 'dev-3': '0000:00:1a.7', 'dev-2': '0000:00:1a.2',
'dev-1': '0000:00:1a.1', 'dev-0': '0000:00:1a.0', 'dev-7':
'0000:00:1d.7', 'dev-6': '0000:00:1d.2', 'dev-5': '0000:00:1d.1',
'dev-4': '0000:00:1d.0', 'msitranslate': '1', 'vdevfn-4': '100',
'vdevfn-5': '100', 'vdevfn-6': '100', 'vdevfn-7': '100', 'vdevfn-0':
'100', 'vdevfn-1': '100', 'vdevfn-2': '100', 'vdevfn-3': '100',
'frontend-id': '1', 'num_devs': '8'} to
/local/domain/0/backend/pci/1/0.
[2009-07-20 07:04:27 4293] INFO (image:394) spawning device models:
/usr/lib64/xen/bin/qemu-dm.debug ['/usr/lib64/xen/bin/qemu-dm.debug',
'-d', '1', '-domain-name', 'hvm', '-videoram', '4', '-vnc',
'0.0.0.0:1', '-vncunused', '-vcpus', '1', '-boot', 'c', '-serial',
'pty', '-acpi', '-net', 'none', '-M', 'xenfv']
[2009-07-20 07:04:27 4293] INFO (image:445) device model pid: 4813
[2009-07-20 07:04:27 4293] INFO (image:547) waiting for sentinel_fifo
[2009-07-20 07:04:27 4293] DEBUG (XendDomainInfo:807)
XendDomainInfo.pci_device_configure: ['pci', ['dev', ['slot', '0x1a'],
['domain', '0x0000'], ['key', '00:1a.0'], ['bus', '0x00'], ['vdevfn',
'0x100'], ['func', '0x0'], ['uuid',
'ab30139e-c4e1-b15a-3cf5-8565a80dde20']], ['state', 'Initialising'],
['sub_state', 'Booting']]
[2009-07-20 07:04:27 4293] DEBUG (XendDomainInfo:715)
XendDomainInfo.hvm_pci_device_insert: {'devs': [{'slot': '0x1a',
'domain': '0x0000', 'key': '00:1a.0', 'bus': '0x00', 'vdevfn':
'0x100', 'func': '0x0', 'uuid':
'ab30139e-c4e1-b15a-3cf5-8565a80dde20'}], 'states': ['Initialising']}
[2009-07-20 07:04:27 4293] DEBUG (XendDomainInfo:726)
XendDomainInfo.hvm_pci_device_insert_dev: {'slot': '0x1a', 'domain':
'0x0000', 'key': '00:1a.0', 'bus': '0x00', 'vdevfn': '0x100', 'func':
'0x0', 'uuid': 'ab30139e-c4e1-b15a-3cf5-8565a80dde20'}
[2009-07-20 07:04:27 4293] DEBUG (XendDomainInfo:735)
XendDomainInfo.hvm_pci_device_insert_dev: 0000:00:1a.0@100
[2009-07-20 07:04:27 4293] DEBUG (image:465) signalDeviceModel:
orig_state is None, retrying
[2009-07-20 07:04:27 4293] DEBUG (image:465) signalDeviceModel:
orig_state is None, retrying
[2009-07-20 07:04:27 4293] DEBUG (image:465) signalDeviceModel:
orig_state is None, retrying
[2009-07-20 07:04:27 4293] DEBUG (image:465) signalDeviceModel:
orig_state is None, retrying
[2009-07-20 07:04:27 4293] DEBUG (image:465) signalDeviceModel:
orig_state is None, retrying
[2009-07-20 07:04:28 4293] INFO (image:495) signalDeviceModel:restore
dm state to running
[2009-07-20 07:04:28 4293] DEBUG (pciif:132) Reconfiguring PCI device
0000:00:1a.0.
[2009-07-20 07:04:28 4293] INFO (pciquirk:91) NO quirks found for PCI
device [8086:2937:17aa:20f0]
[2009-07-20 07:04:28 4293] DEBUG (pciquirk:134) Permissive mode NOT
enabled for PCI device [8086:2937:17aa:20f0]
[2009-07-20 07:04:28 4293] DEBUG (pciif:299) pci: enabling ioport 0x1860/0x20
[2009-07-20 07:04:28 4293] DEBUG (pciif:342) pci: enabling irq 20
[2009-07-20 07:04:28 4293] ERROR (XendDomainInfo:479) VM start failed
Traceback (most recent call last):
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 459, in start
XendTask.log_progress(31, 60, self._initDomain)
File "usr/lib/python2.5/site-packages/xen/xend/XendTask.py", line
209, in log_progress
retval = func(*args, **kwds)
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 2544, in _initDomain
self._createDevices()
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 2170, in _createDevices
self.pci_device_configure_boot()
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 594, in pci_device_configure_boot
self.pci_device_configure(dev_sxp)
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 876, in pci_device_configure
num_devs = dev_control.cleanupDevice(devid)
File "usr/lib/python2.5/site-packages/xen/xend/server/pciif.py",
line 502, in cleanupDevice
state = int(self.readBackend(devid, 'state-%i' % i))
TypeError: int() argument must be a string or a number, not 'NoneType'
[2009-07-20 07:04:28 4293] DEBUG (XendDomainInfo:2702)
XendDomainInfo.destroy: domid=1
[2009-07-20 07:04:28 4293] DEBUG (XendDomainInfo:2176) Destroying device model
[2009-07-20 07:04:29 4293] INFO (image:572) hvm device model terminated
[2009-07-20 07:04:29 4293] DEBUG (XendDomainInfo:2183) Releasing devices
[2009-07-20 07:04:29 4293] DEBUG (XendDomainInfo:2196) Removing vbd/768
[2009-07-20 07:04:29 4293] DEBUG (XendDomainInfo:1120)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768
[2009-07-20 07:04:29 4293] DEBUG (XendDomainInfo:2196) Removing vfb/0
[2009-07-20 07:04:29 4293] DEBUG (XendDomainInfo:1120)
XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2009-07-20 07:04:29 4293] DEBUG (XendDomainInfo:2196) Removing pci/0
[2009-07-20 07:04:29 4293] DEBUG (XendDomainInfo:1120)
XendDomainInfo.destroyDevice: deviceClass = pci, device = pci/0
[2009-07-20 07:04:29 4293] DEBUG (pciif:534) pci: unregister aer watch
[2009-07-20 07:04:29 4293] DEBUG (XendDomainInfo:2181) No device model
[2009-07-20 07:04:29 4293] DEBUG (XendDomainInfo:2183) Releasing devices
[2009-07-20 07:04:29 4293] ERROR (XendDomainInfo:101) Domain construction failed
Traceback (most recent call last):
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 99, in create
vm.start()
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 459, in start
XendTask.log_progress(31, 60, self._initDomain)
File "usr/lib/python2.5/site-packages/xen/xend/XendTask.py", line
209, in log_progress
retval = func(*args, **kwds)
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 2544, in _initDomain
self._createDevices()
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 2170, in _createDevices
self.pci_device_configure_boot()
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 594, in pci_device_configure_boot
self.pci_device_configure(dev_sxp)
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 876, in pci_device_configure
num_devs = dev_control.cleanupDevice(devid)
File "usr/lib/python2.5/site-packages/xen/xend/server/pciif.py",
line 502, in cleanupDevice
state = int(self.readBackend(devid, 'state-%i' % i))
TypeError: int() argument must be a string or a number, not 'NoneType'
[2009-07-20 07:04:29 4293] ERROR (xmlrpclib2:178) Internal error
handling xend.domain.create
Traceback (most recent call last):
File "usr/lib/python2.5/site-packages/xen/util/xmlrpclib2.py", line
131, in _marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.5/SimpleXMLRPCServer.py", line 415, in _dispatch
return func(*params)
File "usr/lib/python2.5/site-packages/xen/xend/server/XMLRPCServer.py",
line 79, in domain_create
info = XendDomain.instance().domain_create(config)
File "usr/lib/python2.5/site-packages/xen/xend/XendDomain.py", line
970, in domain_create
dominfo = XendDomainInfo.create(config)
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 99, in create
vm.start()
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 459, in start
XendTask.log_progress(31, 60, self._initDomain)
File "usr/lib/python2.5/site-packages/xen/xend/XendTask.py", line
209, in log_progress
retval = func(*args, **kwds)
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 2544, in _initDomain
self._createDevices()
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 2170, in _createDevices
self.pci_device_configure_boot()
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 594, in pci_device_configure_boot
self.pci_device_configure(dev_sxp)
File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 876, in pci_device_configure
num_devs = dev_control.cleanupDevice(devid)
File "usr/lib/python2.5/site-packages/xen/xend/server/pciif.py",
line 502, in cleanupDevice
state = int(self.readBackend(devid, 'state-%i' % i))
TypeError: int() argument must be a string or a number, not 'NoneType'
Does anyone has any idea to what be causing this issue?
Tom
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|