Tom Rotenberg
2009-Jul-20 11:03 UTC
[Xen-devel] Xen 3.4 multi-function pass-through tree, isn''t working...
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@lists.xensource.com http://lists.xensource.com/xen-devel
Simon Horman
2009-Jul-20 12:04 UTC
[Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
On Mon, Jul 20, 2009 at 02:03:38PM +0300, Tom Rotenberg wrote:> 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''Hi Tom, that looks a lot like a bug to me, thanks for your comprehensive report. A few questions. * Does this setup work with the regular xen-3.4-testing tree? * Is there anything custom in /etc/xen/hvm ? If so, would it be possible for you to post a copy of that file to aid reproducing the problem? Thanks _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tom Rotenberg
2009-Jul-20 12:11 UTC
[Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
This setup worked with the plain xen 3.4 tree. No custom stuff in /etc/xen/hvm. I took a look at the bug, and wrote a workaround for it. Take a look, and tell if it''s ok: diff -r 776ab1bec020 tools/python/xen/xend/server/pciif.py --- a/tools/python/xen/xend/server/pciif.py Sun Jul 19 11:53:11 2009 -0400 +++ b/tools/python/xen/xend/server/pciif.py Mon Jul 20 08:17:34 2009 -0400 @@ -499,7 +499,13 @@ num_devs = int(self.readBackend(devid, ''num_devs'')) new_num_devs = 0 for i in range(num_devs): - state = int(self.readBackend(devid, ''state-%i'' % i)) + try: + state = int(self.readBackend(devid, ''state-%i'' % i)) + except: + state = xenbusState[''Unknown''] + if state == xenbusState[''Closing'']: # Detach I/O resources. pci_dev = parse_pci_name(self.readBackend(devid, ''dev-%i'' % i)) What do u think this bug is caused from? On Mon, Jul 20, 2009 at 3:04 PM, Simon Horman<horms@verge.net.au> wrote:> On Mon, Jul 20, 2009 at 02:03:38PM +0300, Tom Rotenberg wrote: >> 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'' > > Hi Tom, > > that looks a lot like a bug to me, thanks for your comprehensive report. > A few questions. > > * Does this setup work with the regular xen-3.4-testing tree? > * Is there anything custom in /etc/xen/hvm ? > If so, would it be possible for you to post a copy of that > file to aid reproducing the problem? > > Thanks >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Simon Horman
2009-Jul-21 03:23 UTC
[Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
On Mon, Jul 20, 2009 at 03:11:29PM +0300, Tom Rotenberg wrote:> This setup worked with the plain xen 3.4 tree. > No custom stuff in /etc/xen/hvm. > > I took a look at the bug, and wrote a workaround for it. Take a look, > and tell if it''s ok: > > diff -r 776ab1bec020 tools/python/xen/xend/server/pciif.py > --- a/tools/python/xen/xend/server/pciif.py Sun Jul 19 11:53:11 2009 -0400 > +++ b/tools/python/xen/xend/server/pciif.py Mon Jul 20 08:17:34 2009 -0400 > @@ -499,7 +499,13 @@ > num_devs = int(self.readBackend(devid, ''num_devs'')) > new_num_devs = 0 > for i in range(num_devs): > - state = int(self.readBackend(devid, ''state-%i'' % i)) > + try: > + state = int(self.readBackend(devid, ''state-%i'' % i)) > + except: > + state = xenbusState[''Unknown''] > + > if state == xenbusState[''Closing'']: > # Detach I/O resources. > pci_dev = parse_pci_name(self.readBackend(devid, ''dev-%i'' % i)) > > What do u think this bug is caused from?Hi Tom, your work around seems entirely reasonable, but I am still puzzled at how your system gets into this state. I''m having no luck reproducing it here. I have the following passed to the dom0 kernel at boot: root=/dev/mapper/sam-root_x86_64 console=ttyS0 loglevel=8 ro pciback.hide=(01:00.0)(01:00.1)(00:1b.0)(00:1a.0)(00:1a.1)(00:1a.7)(00:1d.0)(00:1d.1)(00:1d.2)(00:1d.7)(07:b.0)(07:04.0) reassign_resources reassigndev=00:1d.7 And I''m starting a domU with all USB devices passed-through using: xm create -c /home/horms/hvm xen_platform_pci=0 pci=''00:1a.0'' pci=''00:1a.1'' pci=''00:1a.7'' pci=''00:1d.0'' pci=''00:1d.1'' pci=''00:1d.2'' pci=''00:1d.7'' To test multi-function pass-through I also tried: xm create -c /home/horms/hvm xen_platform_pci=0 pci=''00:1a.*'' pci=''00:1d.*'' /home/horms/hvm is as follows: import os, re arch = os.uname()[4] if re.search(''64'', arch): arch_libdir = ''lib64'' else: arch_libdir = ''lib'' kernel = "/usr/lib/xen/boot/hvmloader" builder=''hvm'' memory = 128 name = "debian" disk = [ ''file:/home/horms/projects/xen/media/debian-unstable.disk,hda,w'' ] boot=''c'' device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' sdl=0 opengl=0 vnc=1 vnclisten="0.0.0.0" vncunused=1 nographic=0 stdvga=0 serial=''pty'' _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tom Rotenberg
2009-Jul-21 07:22 UTC
[Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
Simon, First of all, my workaround seems to work ok, so i think you should consider including it anyway (if there was an exception during state retrieval, then the state should be unknown, instead of throw an exception). Do u think you will add this patch to the multi-function code? I''m reproducing this, on a Lenovo T500 machine, which is different than your machine, since it also contains the 00:1a.2 device. Also, i don''t specify the devices to be pass-through in the boot line, but rather, bind them to pciback after the machine boots. This is the result of ''lspci'' on my machine: t500-testing:~# lspci 00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07) 00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07) 00:03.0 Communication controller: Intel Corporation Mobile 4 Series Chipset MEI Controller (rev 07) 00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03) 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03) 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03) 00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03) 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03) 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03) 00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03) 00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03) 00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03) 00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03) 00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03) 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03) 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93) 00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03) 00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03) 00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03) 01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3650 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection 04:00.0 Memory controller: Intel Corporation Turbo Memory Controller (rev 11) 15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba) 15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04) 15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21) 15:00.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 11) 15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11) 15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11) So, do u have any idea about the problem? Tom On Tue, Jul 21, 2009 at 6:23 AM, Simon Horman<horms@verge.net.au> wrote:> On Mon, Jul 20, 2009 at 03:11:29PM +0300, Tom Rotenberg wrote: >> This setup worked with the plain xen 3.4 tree. >> No custom stuff in /etc/xen/hvm. >> >> I took a look at the bug, and wrote a workaround for it. Take a look, >> and tell if it''s ok: >> >> diff -r 776ab1bec020 tools/python/xen/xend/server/pciif.py >> --- a/tools/python/xen/xend/server/pciif.py Sun Jul 19 11:53:11 2009 -0400 >> +++ b/tools/python/xen/xend/server/pciif.py Mon Jul 20 08:17:34 2009 -0400 >> @@ -499,7 +499,13 @@ >> num_devs = int(self.readBackend(devid, ''num_devs'')) >> new_num_devs = 0 >> for i in range(num_devs): >> - state = int(self.readBackend(devid, ''state-%i'' % i)) >> + try: >> + state = int(self.readBackend(devid, ''state-%i'' % i)) >> + except: >> + state = xenbusState[''Unknown''] >> + >> if state == xenbusState[''Closing'']: >> # Detach I/O resources. >> pci_dev = parse_pci_name(self.readBackend(devid, ''dev-%i'' % i)) >> >> What do u think this bug is caused from? > > Hi Tom, > > your work around seems entirely reasonable, but I am still puzzled at > how your system gets into this state. I''m having no luck reproducing it > here. > > I have the following passed to the dom0 kernel at boot: > > root=/dev/mapper/sam-root_x86_64 console=ttyS0 loglevel=8 ro pciback.hide=(01:00.0)(01:00.1)(00:1b.0)(00:1a.0)(00:1a.1)(00:1a.7)(00:1d.0)(00:1d.1)(00:1d.2)(00:1d.7)(07:b.0)(07:04.0) reassign_resources reassigndev=00:1d.7 > > And I''m starting a domU with all USB devices passed-through using: > > xm create -c /home/horms/hvm xen_platform_pci=0 pci=''00:1a.0'' pci=''00:1a.1'' pci=''00:1a.7'' pci=''00:1d.0'' pci=''00:1d.1'' pci=''00:1d.2'' pci=''00:1d.7'' > > To test multi-function pass-through I also tried: > > xm create -c /home/horms/hvm xen_platform_pci=0 pci=''00:1a.*'' pci=''00:1d.*'' > > /home/horms/hvm is as follows: > > import os, re > arch = os.uname()[4] > if re.search(''64'', arch): > arch_libdir = ''lib64'' > else: > arch_libdir = ''lib'' > kernel = "/usr/lib/xen/boot/hvmloader" > builder=''hvm'' > memory = 128 > name = "debian" > disk = [ ''file:/home/horms/projects/xen/media/debian-unstable.disk,hda,w'' ] > boot=''c'' > device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' > sdl=0 > opengl=0 > vnc=1 > vnclisten="0.0.0.0" > vncunused=1 > nographic=0 > stdvga=0 > serial=''pty'' >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Simon Horman
2009-Jul-21 10:15 UTC
[Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
On Tue, Jul 21, 2009 at 10:22:19AM +0300, Tom Rotenberg wrote:> Simon, > > First of all, my workaround seems to work ok, so i think you should > consider including it anyway (if there was an exception during state > retrieval, then the state should be unknown, instead of throw an > exception). Do u think you will add this patch to the multi-function > code?I am certainly considering adding it if we can''t determine why this happens. But it would be better to know why :-)> I''m reproducing this, on a Lenovo T500 machine, which is different > than your machine, since it also contains the 00:1a.2 device. > Also, i don''t specify the devices to be pass-through in the boot line, > but rather, bind them to pciback after the machine boots.Thanks, I''ll see if binding them after boot sheds any light on the problem. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Simon Horman
2009-Jul-22 06:11 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
On Tue, Jul 21, 2009 at 08:15:00PM +1000, Simon Horman wrote:> On Tue, Jul 21, 2009 at 10:22:19AM +0300, Tom Rotenberg wrote: > > Simon, > > > > First of all, my workaround seems to work ok, so i think you should > > consider including it anyway (if there was an exception during state > > retrieval, then the state should be unknown, instead of throw an > > exception). Do u think you will add this patch to the multi-function > > code? > > I am certainly considering adding it if we can''t determine why this > happens. But it would be better to know why :-) > > > I''m reproducing this, on a Lenovo T500 machine, which is different > > than your machine, since it also contains the 00:1a.2 device. > > Also, i don''t specify the devices to be pass-through in the boot line, > > but rather, bind them to pciback after the machine boots. > > Thanks, I''ll see if binding them after boot sheds any light on the problem.Hi Tom, unfortuantely binding devices to pci-back after booting dom0 didn''t help me to reproduce the problem. I''m wondering if you could run a few tests to try and isolate the problem 1) Try passing through the PCI devices one by one to try and see which devices cause the problem that you are seeing and; 2) Do a bisection on the tree - say back to v3.4.1-rc6, to see which changeset is causing the problem. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tom Rotenberg
2009-Jul-22 09:02 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
Simon, I will try to do this this week, and give you the results (i hope i will finish it by tomorrow). Tom On Wed, Jul 22, 2009 at 9:11 AM, Simon Horman<horms@verge.net.au> wrote:> On Tue, Jul 21, 2009 at 08:15:00PM +1000, Simon Horman wrote: >> On Tue, Jul 21, 2009 at 10:22:19AM +0300, Tom Rotenberg wrote: >> > Simon, >> > >> > First of all, my workaround seems to work ok, so i think you should >> > consider including it anyway (if there was an exception during state >> > retrieval, then the state should be unknown, instead of throw an >> > exception). Do u think you will add this patch to the multi-function >> > code? >> >> I am certainly considering adding it if we can''t determine why this >> happens. But it would be better to know why :-) >> >> > I''m reproducing this, on a Lenovo T500 machine, which is different >> > than your machine, since it also contains the 00:1a.2 device. >> > Also, i don''t specify the devices to be pass-through in the boot line, >> > but rather, bind them to pciback after the machine boots. >> >> Thanks, I''ll see if binding them after boot sheds any light on the problem. > > Hi Tom, > > unfortuantely binding devices to pci-back after booting dom0 didn''t > help me to reproduce the problem. > > I''m wondering if you could run a few tests to try and isolate the problem > > 1) Try passing through the PCI devices one by one to try and > see which devices cause the problem that you are seeing and; > > 2) Do a bisection on the tree - say back to v3.4.1-rc6, to see > which changeset is causing the problem. > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tom Rotenberg
2009-Jul-22 10:35 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
Simon, My results: 1. Trying to isolate the device that causes this: - well it looks like whenever i try to PT more than one device it happens, here is the log: t500-testing:~# xm create /etc/xen/hvm pci=''00:1a.0,1,2,7'' Using config file "/etc/xen/xp2_ati". Error: int() argument must be a string or a number, not ''NoneType'' t500-testing:~# xm create /etc/xen/hvm_ati pci=''00:1a.0,1,2'' Using config file "/etc/xen/xp2_ati". Error: int() argument must be a string or a number, not ''NoneType'' t500-testing:~# xm create /etc/xen/hvm_ati pci=''00:1a.0,1'' Using config file "/etc/xen/xp2_ati". Error: int() argument must be a string or a number, not ''NoneType'' t500-testing:~# xm create /etc/xen/hvm_ati pci=''00:1a.0'' Using config file "/etc/xen/xp2_ati". Started domain hvm (id=4) t500-testing:~# xm create /etc/xen/hvm_ati pci=''00:1a.0'' pci=''00:1d.0'' Using config file "/etc/xen/xp2_ati". Error: int() argument must be a string or a number, not ''NoneType'' t500-testing:~# xm create /etc/xen/hvm_ati pci=''00:1a.0'' Using config file "/etc/xen/xp2_ati". Started domain hvm (id=6) t500-testing:~# xm create /etc/xen/hvm_ati pci=''00:1a.0,2'' Using config file "/etc/xen/xp2_ati". Error: int() argument must be a string or a number, not ''NoneType'' t500-testing:~# xm create /etc/xen/xp2_ati pci=''00:1a.0,1'' Using config file "/etc/xen/xp2_ati". Error: int() argument must be a string or a number, not ''NoneType'' 2. The result of the bisection of the tree, to find the problematic changest. Well, it looks like, changeset: 19694, caused this problem. The changeset details: changeset: 19694:b19ed7753827 user: Simon Horman <horms@verge.net.au> date: Mon Jul 13 18:48:05 2009 +1000 summary: xend: hot-plug PCI devices at boot-time Tom On Wed, Jul 22, 2009 at 9:11 AM, Simon Horman<horms@verge.net.au> wrote:> On Tue, Jul 21, 2009 at 08:15:00PM +1000, Simon Horman wrote: >> On Tue, Jul 21, 2009 at 10:22:19AM +0300, Tom Rotenberg wrote: >> > Simon, >> > >> > First of all, my workaround seems to work ok, so i think you should >> > consider including it anyway (if there was an exception during state >> > retrieval, then the state should be unknown, instead of throw an >> > exception). Do u think you will add this patch to the multi-function >> > code? >> >> I am certainly considering adding it if we can''t determine why this >> happens. But it would be better to know why :-) >> >> > I''m reproducing this, on a Lenovo T500 machine, which is different >> > than your machine, since it also contains the 00:1a.2 device. >> > Also, i don''t specify the devices to be pass-through in the boot line, >> > but rather, bind them to pciback after the machine boots. >> >> Thanks, I''ll see if binding them after boot sheds any light on the problem. > > Hi Tom, > > unfortuantely binding devices to pci-back after booting dom0 didn''t > help me to reproduce the problem. > > I''m wondering if you could run a few tests to try and isolate the problem > > 1) Try passing through the PCI devices one by one to try and > see which devices cause the problem that you are seeing and; > > 2) Do a bisection on the tree - say back to v3.4.1-rc6, to see > which changeset is causing the problem. > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Simon Horman
2009-Jul-24 09:05 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
Hi Tom, I''m still scratching my head over this one. Would it be possible for you to apply the following patch and post the resulting xend.log? It includes your work-around as well as some extra debugging messages. I''m interested to try and see what kind of state your xenstore is getting into. Thanks Index: xen-3.4-testing-pass-through-multi-function/tools/python/xen/xend/XendDomainInfo.py ==================================================================--- xen-3.4-testing-pass-through-multi-function.orig/tools/python/xen/xend/XendDomainInfo.py 2009-07-24 19:01:00.000000000 +1000 +++ xen-3.4-testing-pass-through-multi-function/tools/python/xen/xend/XendDomainInfo.py 2009-07-24 19:02:35.000000000 +1000 @@ -2137,6 +2137,13 @@ class XendDomainInfo: log.info("createDevice: %s : %s" % (devclass, scrub_password(config))) dev_uuid = config.get(''uuid'') devid = self._createDevice(devclass, config) + + num_devs = self.getDeviceController(devclass).readBackend(devid, "num_devs") + if num_devs: + for i in range(int(num_devs)): + dev = self.getDeviceController(devclass).readBackend(devid, "dev-%i" % i) + state = self.getDeviceController(devclass).readBackend(devid, "state-%i" % i) + log.info("Created PCI device %s at index %i with state %s" % (dev, i, state)) # store devid in XendConfig for caching reasons if dev_uuid in self.info[''devices'']: Index: xen-3.4-testing-pass-through-multi-function/tools/python/xen/xend/server/pciif.py ==================================================================--- xen-3.4-testing-pass-through-multi-function.orig/tools/python/xen/xend/server/pciif.py 2009-07-24 14:53:03.000000000 +1000 +++ xen-3.4-testing-pass-through-multi-function/tools/python/xen/xend/server/pciif.py 2009-07-24 19:02:55.000000000 +1000 @@ -110,6 +110,9 @@ class PciController(DevController): states = config.get(''states'', []) num_olddevs = int(self.readBackend(devid, ''num_devs'')) + log.debug(''reconfigureDevice: num_devs=%d num_olddevs=%d'' % + (num_devs, num_olddevs)) + for i in range(num_devs): try: dev = back[''dev-%i'' % i] @@ -126,10 +129,13 @@ class PciController(DevController): devno = self.reconfigureDevice_find(devid, num_olddevs, dev) if devno == None: devno = num_olddevs + i - log.debug(''Attaching PCI device %s.'' % dev) + log.debug(''Attaching PCI device %s at index %d.'' % + (dev, devno)) attaching = True else: - log.debug(''Reconfiguring PCI device %s.'' % dev) + state = self.readBackend(devid, ''state-%i'' % devno) + log.debug((''Reconfiguring PCI device %s at index %d '' + + ''with state %s.'') % (dev, devno, state)) attaching = False self.setupOneDevice(parse_pci_name(dev)) @@ -499,7 +505,14 @@ class PciController(DevController): num_devs = int(self.readBackend(devid, ''num_devs'')) new_num_devs = 0 for i in range(num_devs): - state = int(self.readBackend(devid, ''state-%i'' % i)) + dev = self.readBackend(devid, ''dev-%i'' % i) + state_str = self.readBackend(devid, ''state-%i'' % i) + log.debug(''Cleanup PCI device %s at index %d with state %s'' % (dev, i, state_str)) + try: + state = int(state_str) + except: + state = xenbusState[''Unknown''] + if state == xenbusState[''Closing'']: # Detach I/O resources. pci_dev = parse_pci_name(self.readBackend(devid, ''dev-%i'' % i)) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tom Rotenberg
2009-Jul-26 10:01 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
Simon, (BTW - Did you see my other mail, about a problem, which causes the machine to freeze? i suspect that this might be due to the multi-fn pass-through code. Can u please give your opinion about it?) Here is the resulting log: [2009-07-22 06:29:49 4301] INFO (SrvDaemon:220) Xend exited with status 0. [2009-07-22 06:34:05 4280] INFO (SrvDaemon:332) Xend Daemon started [2009-07-22 06:34:05 4280] INFO (SrvDaemon:336) Xend changeset: Tue Jul 14 12:16:27 2009 +1000 19747:789778e3326d. [2009-07-22 06:34:05 4280] INFO (XendNetwork:114) Not recreating missing unmanaged network tmpbridge [2009-07-22 06:34:06 4280] DEBUG (XendDomainInfo:141) XendDomainInfo.recreate({''max_vcpu_id'': 1, ''cpu_time'': 10818184577L, ''ssidref'': 0, ''hvm'': 0, ''shutdown_reason'': 0, ''dying'': 0, ''online_vcpus'': 2, ''domid'': 0, ''paused'': 0, ''crashed'': 0, ''running'': 1, ''maxmem_kb'': 17179869180L, ''shutdown'': 0, ''mem_kb'': 1913836L, ''handle'': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ''blocked'': 0, ''name'': ''Domain-0''}) [2009-07-22 06:34:06 4280] INFO (XendDomainInfo:159) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0 [2009-07-22 06:34:06 4280] DEBUG (XendDomainInfo:3035) Storing VM details: {''on_xend_stop'': ''ignore'', ''shadow_memory'': ''0'', ''uuid'': ''00000000-0000-0000-0000-000000000000'', ''on_reboot'': ''restart'', ''image'': ''(linux (kernel ))'', ''on_poweroff'': ''destroy'', ''bootloader_args'': '''', ''on_xend_start'': ''ignore'', ''on_crash'': ''restart'', ''xend/restart_count'': ''0'', ''vcpus'': ''2'', ''vcpu_avail'': ''3'', ''bootloader'': '''', ''name'': ''Domain-0''} [2009-07-22 06:34:06 4280] DEBUG (XendDomainInfo:1604) Storing domain details: {''name'': ''Domain-0'', ''console/limit'': ''1048576'', ''memory/target'': ''1913836'', ''vm'': ''/vm/00000000-0000-0000-0000-000000000000'', ''domid'': ''0'', ''cpu/0/availability'': ''online'', ''cpu/1/availability'': ''online'', ''control/platform-feature-multiprocessor-suspend'': ''1'', ''console/type'': ''xenconsoled''} [2009-07-22 06:34:06 4280] DEBUG (XendDomain:452) Adding Domain: 0 [2009-07-22 06:34:06 4280] DEBUG (XendDomain:386) number of vcpus to use is 0 [2009-07-22 06:34:06 4280] DEBUG (XendDomainInfo:1691) XendDomainInfo.handleShutdownWatch [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: VBD.set_device not found [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: VBD.set_type not found [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: session.get_all_records not found [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: event.get_record not found [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: event.get_all not found [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: VIF.get_network not found [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: VIF.set_device not found [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: VIF.set_MAC not found [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: VIF.set_MTU not found [2009-07-22 06:34:06 4280] WARNING (XendAPI:701) API call: debug.get_all not found [2009-07-22 06:34:06 4280] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled for this server. [2009-07-22 06:34:06 4280] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xmlrpc.sock. [2009-07-22 06:34:30 4280] DEBUG (XendDomainInfo:93) XendDomainInfo.create([''vm'', [''name'', ''hvm''], [''memory'', 1024], [''shadow_memory'', 8], [''vcpus'', 1], [''on_xend_start'', ''ignore''], [''on_xend_stop'', ''ignore''], [''image'', [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], [''videoram'', 4], [''device_model'', ''/usr/lib64/xen/bin/qemu-dm.debug''], [''pae'', 1], [''vcpus'', 1], [''boot'', ''c''], [''fda'', ''''], [''fdb'', ''''], [''timer_mode'', 1], [''localtime'', 0], [''serial'', ''pty''], [''stdvga'', 0], [''isa'', 0], [''nographic'', 0], [''soundhw'', ''''], [''vnc'', 1], [''vncdisplay'', 1], [''vncunused'', 1], [''vnclisten'', ''0.0.0.0''], [''sdl'', 0], [''display'', ''guyg-desktop:0''], [''xauthority'', ''/root/.Xauthority''], [''rtc_timeoffset'', 0], [''monitor'', 0], [''acpi'', 1], [''apic'', 1], [''usb'', 0], [''usbdevice'', ''''], [''keymap'', ''''], [''pci'', [[''0x0'', ''0x00'', ''0x1a'', ''0x0'', ''0x20'', ''''], [''0x0'', ''0x00'', ''0x1d'', ''0x0'', ''0x20'', '''']]], [''hpet'', 0], [''guest_os_type'', ''default''], [''hap'', 1], [''cpuid'', []], [''cpuid_check'', []], [''viridian'', 0], [''pci_msitranslate'', 1], [''vpt_align'', 1], [''pci_power_mgmt'', 0], [''xen_platform_pci'', 1], [''vncpasswd'', ''XXXXXXXX'']]], [''s3_integrity'', 1], [''device'', [''vbd'', [''uname'', ''file:/root/xp2_t400_ati.img''], [''dev'', ''hda''], [''mode'', ''w'']]], [''device'', [''pci'', [''dev'', [''domain'', ''0x0''], [''bus'', ''0x00''], [''slot'', ''0x1a''], [''func'', ''0x0''], [''requested_vslot'', ''0x20'']], [''dev'', [''domain'', ''0x0''], [''bus'', ''0x00''], [''slot'', ''0x1d''], [''func'', ''0x0''], [''requested_vslot'', ''0x20'']]]]]) [2009-07-22 06:34:30 4280] DEBUG (XendDomainInfo:2278) XendDomainInfo.constructDomain [2009-07-22 06:34:30 4280] DEBUG (balloon:166) Balloon: 127712 KiB free; need 4096; done. [2009-07-22 06:34:30 4280] DEBUG (XendDomain:452) Adding Domain: 1 [2009-07-22 06:34:30 4280] DEBUG (XendDomainInfo:2480) XendDomainInfo.initDomain: 1 256 [2009-07-22 06:34:30 4280] DEBUG (image:322) No VNC passwd configured for vfb access [2009-07-22 06:34:30 4280] DEBUG (image:811) args: boot, val: c [2009-07-22 06:34:30 4280] DEBUG (image:811) args: fda, val: None [2009-07-22 06:34:30 4280] DEBUG (image:811) args: fdb, val: None [2009-07-22 06:34:30 4280] DEBUG (image:811) args: soundhw, val: None [2009-07-22 06:34:30 4280] DEBUG (image:811) args: localtime, val: 0 [2009-07-22 06:34:30 4280] DEBUG (image:811) args: serial, val: [''pty''] [2009-07-22 06:34:30 4280] DEBUG (image:811) args: std-vga, val: 0 [2009-07-22 06:34:30 4280] DEBUG (image:811) args: isa, val: 0 [2009-07-22 06:34:30 4280] DEBUG (image:811) args: acpi, val: 1 [2009-07-22 06:34:30 4280] DEBUG (image:811) args: usb, val: 0 [2009-07-22 06:34:30 4280] DEBUG (image:811) args: usbdevice, val: None [2009-07-22 06:34:30 4280] INFO (image:747) Need to create platform device.[domid:1] [2009-07-22 06:34:30 4280] DEBUG (XendDomainInfo:2504) _initDomain:shadow_memory=0x8, memory_static_max=0x40000000, memory_static_min=0x0. [2009-07-22 06:34:30 4280] DEBUG (balloon:172) Balloon: 126296 KiB free; 0 to scrub; need 1065984; retries: 20. [2009-07-22 06:34:30 4280] DEBUG (balloon:187) Balloon: setting dom0 target to 951 MiB. [2009-07-22 06:34:30 4280] DEBUG (XendDomainInfo:1285) Setting memory target of domain Domain-0 (0) to 951 MiB. [2009-07-22 06:34:30 4280] DEBUG (balloon:172) Balloon: 494936 KiB free; 0 to scrub; need 1065984; retries: 20. [2009-07-22 06:34:30 4280] DEBUG (balloon:172) Balloon: 818520 KiB free; 0 to scrub; need 1065984; retries: 20. [2009-07-22 06:34:31 4280] DEBUG (balloon:166) Balloon: 1066308 KiB free; need 1065984; done. [2009-07-22 06:34:31 4280] INFO (image:173) buildDomain os=hvm dom=1 vcpus=1 [2009-07-22 06:34:31 4280] DEBUG (image:864) domid = 1 [2009-07-22 06:34:31 4280] DEBUG (image:865) image /usr/lib/xen/boot/hvmloader [2009-07-22 06:34:31 4280] DEBUG (image:866) store_evtchn = 2 [2009-07-22 06:34:31 4280] DEBUG (image:867) memsize = 1024 [2009-07-22 06:34:31 4280] DEBUG (image:868) target = 1024 [2009-07-22 06:34:31 4280] DEBUG (image:869) vcpus = 1 [2009-07-22 06:34:31 4280] DEBUG (image:870) acpi = 1 [2009-07-22 06:34:31 4280] DEBUG (image:871) apic = 1 [2009-07-22 06:34:31 4280] INFO (XendDomainInfo:2142) createDevice: vfb : {''vncunused'': 1, ''other_config'': {''vncunused'': 1, ''vnclisten'': ''0.0.0.0'', ''vnc'': ''1'', ''vncdisplay'': 1}, ''vnc'': ''1'', ''uuid'': ''2346405d-841f-fe92-9438-2a3182ff69b5'', ''vnclisten'': ''0.0.0.0'', ''vncdisplay'': 1} [2009-07-22 06:34:31 4280] 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-22 06:34:31 4280] DEBUG (DevController:97) DevController: writing {''vncunused'': ''1'', ''domain'': ''hvm'', ''vnc'': ''1'', ''uuid'': ''2346405d-841f-fe92-9438-2a3182ff69b5'', ''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-22 06:34:31 4280] INFO (XendDomainInfo:2142) createDevice: vbd : {''uuid'': ''87b0d0de-21ac-17f2-4c6f-8e40483b473e'', ''bootable'': 1, ''driver'': ''paravirtualised'', ''dev'': ''hda'', ''uname'': ''file:/root/xp2_t400_ati.img'', ''mode'': ''w''} [2009-07-22 06:34:31 4280] 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-22 06:34:31 4280] DEBUG (DevController:97) DevController: writing {''domain'': ''hvm'', ''frontend'': ''/local/domain/1/device/vbd/768'', ''uuid'': ''87b0d0de-21ac-17f2-4c6f-8e40483b473e'', ''bootable'': ''1'', ''dev'': ''hda'', ''state'': ''1'', ''params'': ''/root/xp2_t400_ati.img'', ''mode'': ''w'', ''online'': ''1'', ''frontend-id'': ''1'', ''type'': ''file''} to /local/domain/0/backend/vbd/1/768. [2009-07-22 06:34:31 4280] INFO (XendDomainInfo:2142) createDevice: pci : {''devs'': [{''slot'': ''0x1a'', ''requested_vslot'': ''0x20'', ''domain'': ''0x0'', ''uuid'': ''9f582f76-fedb-a6d4-91f9-a3e9ff8ef3a4'', ''bus'': ''0x00'', ''func'': ''0x0''}, {''slot'': ''0x1d'', ''requested_vslot'': ''0x20'', ''domain'': ''0x0'', ''uuid'': ''9eeb1de6-5b8e-b1a1-c412-ffce22b17273'', ''bus'': ''0x00'', ''func'': ''0x0''}], ''uuid'': ''3197d4bc-5b4c-8f75-2448-8ac55d6df93d''} [2009-07-22 06:34:31 4280] INFO (pciquirk:90) NO quirks found for PCI device [8086:2937:17aa:20f0] [2009-07-22 06:34:31 4280] DEBUG (pciquirk:133) Permissive mode NOT enabled for PCI device [8086:2937:17aa:20f0] [2009-07-22 06:34:31 4280] DEBUG (pciif:347) pci: enabling ioport 0x1860/0x20 [2009-07-22 06:34:31 4280] DEBUG (pciif:390) pci: enabling irq 20 [2009-07-22 06:34:31 4280] INFO (pciquirk:90) NO quirks found for PCI device [8086:2934:17aa:20f0] [2009-07-22 06:34:31 4280] DEBUG (pciquirk:133) Permissive mode NOT enabled for PCI device [8086:2934:17aa:20f0] [2009-07-22 06:34:31 4280] DEBUG (pciif:347) pci: enabling ioport 0x18c0/0x20 [2009-07-22 06:34:31 4280] DEBUG (pciif:390) pci: enabling irq 16 [2009-07-22 06:34:31 4280] DEBUG (pciif:474) pci: register aer watch /local/domain/0/backend/pci/1/0/aerState [2009-07-22 06:34:31 4280] 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-22 06:34:31 4280] DEBUG (DevController:97) DevController: writing {''vslot-1'': ''20'', ''domain'': ''hvm'', ''frontend'': ''/local/domain/1/device/pci/0'', ''uuid'': ''3197d4bc-5b4c-8f75-2448-8ac55d6df93d'', ''power_mgmt'': ''0'', ''dev-1'': ''0000:00:1d.0'', ''dev-0'': ''0000:00:1a.0'', ''state'': ''1'', ''vslot-0'': ''20'', ''online'': ''1'', ''frontend-id'': ''1'', ''msitranslate'': ''1'', ''uuid-0'': ''9f582f76-fedb-a6d4-91f9-a3e9ff8ef3a4'', ''uuid-1'': ''9eeb1de6-5b8e-b1a1-c412-ffce22b17273'', ''num_devs'': ''2''} to /local/domain/0/backend/pci/1/0. [2009-07-22 06:34:31 4280] 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-22 06:34:31 4280] INFO (image:445) device model pid: 4818 [2009-07-22 06:34:31 4280] INFO (image:533) waiting for sentinel_fifo [2009-07-22 06:34:33 4280] ERROR (XendDomainInfo:587) Device model didn''t tell the vslots for PCI device [2009-07-22 06:34:33 4280] DEBUG (XendDomainInfo:3035) Storing VM details: {''on_xend_stop'': ''ignore'', ''shadow_memory'': ''9'', ''uuid'': ''fca8ba48-81d0-4842-2bac-59f75e84958c'', ''on_reboot'': ''restart'', ''start_time'': ''1248258873.52'', ''on_poweroff'': ''destroy'', ''bootloader_args'': '''', ''on_xend_start'': ''ignore'', ''on_crash'': ''restart'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''bootloader'': '''', ''image'': ''(hvm (kernel ) (videoram 4) (hpet 0) (stdvga 0) (vnclisten 0.0.0.0) (loader /usr/lib/xen/boot/hvmloader) (serial pty) (vncunused 1) (xen_platform_pci 1) (boot c) (rtc_timeoffset 0) (pci ((0x0 0x00 0x1a 0x0 0x20 ) (0x0 0x00 0x1d 0x0 0x20 ))) (pae 1) (vpt_align 1) (hap 1) (viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (nographic 0) (guest_os_type default) (vncdisplay 1) (pci_msitranslate 1) (apic 1) (sdl 0) (monitor 0) (device_model /usr/lib64/xen/bin/qemu-dm.debug) (pci_power_mgmt 0) (usb 0) (xauthority /root/.Xauthority) (isa 0) (display guyg-desktop:0) (notes (SUSPEND_CANCEL 1)))'', ''name'': ''hvm''} [2009-07-22 06:34:33 4280] DEBUG (XendDomainInfo:1604) Storing domain details: {''console/port'': ''3'', ''name'': ''hvm'', ''console/limit'': ''1048576'', ''store/port'': ''2'', ''vm'': ''/vm/fca8ba48-81d0-4842-2bac-59f75e84958c'', ''domid'': ''1'', ''image/suspend-cancel'': ''1'', ''cpu/0/availability'': ''online'', ''memory/target'': ''1048576'', ''control/platform-feature-multiprocessor-suspend'': ''1'', ''store/ring-ref'': ''1044476'', ''console/type'': ''ioemu''} [2009-07-22 06:34:33 4280] DEBUG (DevController:95) DevController: writing {''state'': ''1'', ''backend-id'': ''0'', ''backend'': ''/local/domain/0/backend/console/1/0''} to /local/domain/1/device/console/0. [2009-07-22 06:34:33 4280] DEBUG (DevController:97) DevController: writing {''domain'': ''hvm'', ''frontend'': ''/local/domain/1/device/console/0'', ''uuid'': ''3e8d2700-d5c5-38ee-7015-97d46f4d04c1'', ''frontend-id'': ''1'', ''state'': ''1'', ''location'': ''3'', ''online'': ''1'', ''protocol'': ''vt100''} to /local/domain/0/backend/console/1/0. [2009-07-22 06:34:33 4280] DEBUG (pciif:478) XendDomainInfo.handleAerStateWatch [2009-07-22 06:34:33 4280] DEBUG (XendDomainInfo:1691) XendDomainInfo.handleShutdownWatch [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices vif. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices vscsi. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices vbd. [2009-07-22 06:34:33 4280] DEBUG (DevController:144) Waiting for 768. [2009-07-22 06:34:33 4280] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vbd/1/768/hotplug-status. [2009-07-22 06:34:33 4280] DEBUG (DevController:643) hotplugStatusCallback 1. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices irq. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices vkbd. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices vfb. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices console. [2009-07-22 06:34:33 4280] DEBUG (DevController:144) Waiting for 0. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices pci. [2009-07-22 06:34:33 4280] DEBUG (DevController:144) Waiting for 0. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices ioports. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices tap. [2009-07-22 06:34:33 4280] DEBUG (DevController:139) Waiting for devices vtpm. [2009-07-22 06:34:33 4280] INFO (XendDomain:1180) Domain hvm (1) unpaused. [2009-07-22 06:34:37 4280] DEBUG (XendDomainInfo:2707) XendDomainInfo.destroy: domid=1 [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:2181) Destroying device model [2009-07-22 06:34:38 4280] INFO (image:558) hvm device model terminated [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:2188) Releasing devices [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:2201) Removing vbd/768 [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:1116) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768 [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:2201) Removing vfb/0 [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:1116) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0 [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:2201) Removing console/0 [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:1116) XendDomainInfo.destroyDevice: deviceClass = console, device console/0 [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:2201) Removing pci/0 [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:1116) XendDomainInfo.destroyDevice: deviceClass = pci, device = pci/0 [2009-07-22 06:34:38 4280] DEBUG (pciif:610) pci: unregister aer watch [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:2186) No device model [2009-07-22 06:34:38 4280] DEBUG (XendDomainInfo:2188) Releasing devices [2009-07-22 06:35:06 4280] DEBUG (SrvServer:76) SrvServer.cleanup() [2009-07-22 06:35:06 4280] DEBUG (XMLRPCServer:236) XMLRPCServer.cleanup() [2009-07-22 06:35:06 4280] DEBUG (XMLRPCServer:236) XMLRPCServer.cleanup() [2009-07-22 06:35:06 4280] DEBUG (XendDomain:620) cleanup_domains [2009-07-22 06:35:06 4276] INFO (SrvDaemon:220) Xend exited with status 0. [2009-07-22 06:39:22 4292] INFO (SrvDaemon:332) Xend Daemon started [2009-07-22 06:39:22 4292] INFO (SrvDaemon:336) Xend changeset: Tue Jul 14 12:16:27 2009 +1000 19747:789778e3326d. [2009-07-22 06:39:22 4292] INFO (XendNetwork:114) Not recreating missing unmanaged network tmpbridge [2009-07-22 06:39:22 4292] DEBUG (XendDomainInfo:141) XendDomainInfo.recreate({''max_vcpu_id'': 1, ''cpu_time'': 10914410757L, ''ssidref'': 0, ''hvm'': 0, ''shutdown_reason'': 0, ''dying'': 0, ''online_vcpus'': 2, ''domid'': 0, ''paused'': 0, ''crashed'': 0, ''running'': 1, ''maxmem_kb'': 17179869180L, ''shutdown'': 0, ''mem_kb'': 1913836L, ''handle'': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ''blocked'': 0, ''name'': ''Domain-0''}) [2009-07-22 06:39:22 4292] INFO (XendDomainInfo:159) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0 [2009-07-22 06:39:22 4292] DEBUG (XendDomainInfo:3038) Storing VM details: {''on_xend_stop'': ''ignore'', ''shadow_memory'': ''0'', ''uuid'': ''00000000-0000-0000-0000-000000000000'', ''on_reboot'': ''restart'', ''image'': ''(linux (kernel ))'', ''on_poweroff'': ''destroy'', ''bootloader_args'': '''', ''on_xend_start'': ''ignore'', ''on_crash'': ''restart'', ''xend/restart_count'': ''0'', ''vcpus'': ''2'', ''vcpu_avail'': ''3'', ''bootloader'': '''', ''name'': ''Domain-0''} [2009-07-22 06:39:22 4292] DEBUG (XendDomainInfo:1607) Storing domain details: {''name'': ''Domain-0'', ''console/limit'': ''1048576'', ''memory/target'': ''1913836'', ''vm'': ''/vm/00000000-0000-0000-0000-000000000000'', ''domid'': ''0'', ''cpu/0/availability'': ''online'', ''cpu/1/availability'': ''online'', ''control/platform-feature-multiprocessor-suspend'': ''1'', ''console/type'': ''xenconsoled''} [2009-07-22 06:39:22 4292] DEBUG (XendDomain:452) Adding Domain: 0 [2009-07-22 06:39:22 4292] DEBUG (XendDomain:386) number of vcpus to use is 0 [2009-07-22 06:39:22 4292] DEBUG (XendDomainInfo:1694) XendDomainInfo.handleShutdownWatch [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: VBD.set_device not found [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: VBD.set_type not found [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: session.get_all_records not found [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: event.get_record not found [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: event.get_all not found [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: VIF.get_network not found [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: VIF.set_device not found [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: VIF.set_MAC not found [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: VIF.set_MTU not found [2009-07-22 06:39:23 4292] WARNING (XendAPI:701) API call: debug.get_all not found [2009-07-22 06:39:23 4292] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled for this server. [2009-07-22 06:39:23 4292] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xmlrpc.sock. [2009-07-22 06:40:20 4292] DEBUG (XendDomainInfo:93) XendDomainInfo.create([''vm'', [''name'', ''hvm''], [''memory'', 1024], [''shadow_memory'', 8], [''vcpus'', 1], [''on_xend_start'', ''ignore''], [''on_xend_stop'', ''ignore''], [''image'', [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], [''videoram'', 4], [''device_model'', ''/usr/lib64/xen/bin/qemu-dm.debug''], [''pae'', 1], [''vcpus'', 1], [''boot'', ''c''], [''fda'', ''''], [''fdb'', ''''], [''timer_mode'', 1], [''localtime'', 0], [''serial'', ''pty''], [''stdvga'', 0], [''isa'', 0], [''nographic'', 0], [''soundhw'', ''''], [''vnc'', 1], [''vncdisplay'', 1], [''vncunused'', 1], [''vnclisten'', ''0.0.0.0''], [''sdl'', 0], [''display'', ''guyg-desktop:0''], [''xauthority'', ''/root/.Xauthority''], [''rtc_timeoffset'', 0], [''monitor'', 0], [''acpi'', 1], [''apic'', 1], [''usb'', 0], [''usbdevice'', ''''], [''keymap'', ''''], [''pci'', [[''0x0'', ''0x00'', ''0x1a'', ''0x0'', ''0x20'', ''''], [''0x0'', ''0x00'', ''0x1d'', ''0x0'', ''0x20'', '''']]], [''hpet'', 0], [''guest_os_type'', ''default''], [''hap'', 1], [''cpuid'', []], [''cpuid_check'', []], [''viridian'', 0], [''pci_msitranslate'', 1], [''vpt_align'', 1], [''pci_power_mgmt'', 0], [''xen_platform_pci'', 1], [''vncpasswd'', ''XXXXXXXX'']]], [''s3_integrity'', 1], [''device'', [''vbd'', [''uname'', ''file:/root/xp2_t400_ati.img''], [''dev'', ''hda''], [''mode'', ''w'']]], [''device'', [''pci'', [''dev'', [''domain'', ''0x0''], [''bus'', ''0x00''], [''slot'', ''0x1a''], [''func'', ''0x0''], [''requested_vslot'', ''0x20'']], [''dev'', [''domain'', ''0x0''], [''bus'', ''0x00''], [''slot'', ''0x1d''], [''func'', ''0x0''], [''requested_vslot'', ''0x20'']]]]]) [2009-07-22 06:40:20 4292] DEBUG (XendDomainInfo:2281) XendDomainInfo.constructDomain [2009-07-22 06:40:20 4292] DEBUG (balloon:166) Balloon: 127712 KiB free; need 4096; done. [2009-07-22 06:40:20 4292] DEBUG (XendDomain:452) Adding Domain: 1 [2009-07-22 06:40:20 4292] DEBUG (XendDomainInfo:2483) XendDomainInfo.initDomain: 1 256 [2009-07-22 06:40:20 4292] DEBUG (image:322) No VNC passwd configured for vfb access [2009-07-22 06:40:20 4292] DEBUG (image:825) args: boot, val: c [2009-07-22 06:40:20 4292] DEBUG (image:825) args: fda, val: None [2009-07-22 06:40:20 4292] DEBUG (image:825) args: fdb, val: None [2009-07-22 06:40:20 4292] DEBUG (image:825) args: soundhw, val: None [2009-07-22 06:40:20 4292] DEBUG (image:825) args: localtime, val: 0 [2009-07-22 06:40:20 4292] DEBUG (image:825) args: serial, val: [''pty''] [2009-07-22 06:40:20 4292] DEBUG (image:825) args: std-vga, val: 0 [2009-07-22 06:40:20 4292] DEBUG (image:825) args: isa, val: 0 [2009-07-22 06:40:20 4292] DEBUG (image:825) args: acpi, val: 1 [2009-07-22 06:40:20 4292] DEBUG (image:825) args: usb, val: 0 [2009-07-22 06:40:20 4292] DEBUG (image:825) args: usbdevice, val: None [2009-07-22 06:40:20 4292] INFO (image:761) Need to create platform device.[domid:1] [2009-07-22 06:40:20 4292] DEBUG (XendDomainInfo:2507) _initDomain:shadow_memory=0x8, memory_static_max=0x40000000, memory_static_min=0x0. [2009-07-22 06:40:20 4292] DEBUG (balloon:172) Balloon: 126296 KiB free; 0 to scrub; need 1065984; retries: 20. [2009-07-22 06:40:20 4292] DEBUG (balloon:187) Balloon: setting dom0 target to 951 MiB. [2009-07-22 06:40:20 4292] DEBUG (XendDomainInfo:1288) Setting memory target of domain Domain-0 (0) to 951 MiB. [2009-07-22 06:40:21 4292] DEBUG (balloon:172) Balloon: 496984 KiB free; 0 to scrub; need 1065984; retries: 20. [2009-07-22 06:40:21 4292] DEBUG (balloon:172) Balloon: 818520 KiB free; 0 to scrub; need 1065984; retries: 20. [2009-07-22 06:40:21 4292] DEBUG (balloon:166) Balloon: 1066308 KiB free; need 1065984; done. [2009-07-22 06:40:21 4292] INFO (image:173) buildDomain os=hvm dom=1 vcpus=1 [2009-07-22 06:40:21 4292] DEBUG (image:878) domid = 1 [2009-07-22 06:40:21 4292] DEBUG (image:879) image /usr/lib/xen/boot/hvmloader [2009-07-22 06:40:21 4292] DEBUG (image:880) store_evtchn = 2 [2009-07-22 06:40:21 4292] DEBUG (image:881) memsize = 1024 [2009-07-22 06:40:21 4292] DEBUG (image:882) target = 1024 [2009-07-22 06:40:21 4292] DEBUG (image:883) vcpus = 1 [2009-07-22 06:40:21 4292] DEBUG (image:884) acpi = 1 [2009-07-22 06:40:21 4292] DEBUG (image:885) apic = 1 [2009-07-22 06:40:21 4292] INFO (XendDomainInfo:2145) createDevice: vfb : {''vncunused'': 1, ''other_config'': {''vncunused'': 1, ''vnclisten'': ''0.0.0.0'', ''vnc'': ''1'', ''vncdisplay'': 1}, ''vnc'': ''1'', ''uuid'': ''734fa7b9-1f1e-b707-decd-7fdb2020095c'', ''vnclisten'': ''0.0.0.0'', ''vncdisplay'': 1} [2009-07-22 06:40:21 4292] 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-22 06:40:21 4292] DEBUG (DevController:97) DevController: writing {''vncunused'': ''1'', ''domain'': ''hvm'', ''vnc'': ''1'', ''uuid'': ''734fa7b9-1f1e-b707-decd-7fdb2020095c'', ''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-22 06:40:21 4292] INFO (XendDomainInfo:2145) createDevice: vbd : {''uuid'': ''f132cee0-e76f-a6fd-391d-0e7307f41c9b'', ''bootable'': 1, ''driver'': ''paravirtualised'', ''dev'': ''hda'', ''uname'': ''file:/root/xp2_t400_ati.img'', ''mode'': ''w''} [2009-07-22 06:40:21 4292] 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-22 06:40:21 4292] DEBUG (DevController:97) DevController: writing {''domain'': ''hvm'', ''frontend'': ''/local/domain/1/device/vbd/768'', ''uuid'': ''f132cee0-e76f-a6fd-391d-0e7307f41c9b'', ''bootable'': ''1'', ''dev'': ''hda'', ''state'': ''1'', ''params'': ''/root/xp2_t400_ati.img'', ''mode'': ''w'', ''online'': ''1'', ''frontend-id'': ''1'', ''type'': ''file''} to /local/domain/0/backend/vbd/1/768. [2009-07-22 06:40:21 4292] INFO (XendDomainInfo:2145) createDevice: pci : {''devs'': [{''slot'': ''0x1a'', ''requested_vslot'': ''0x20'', ''domain'': ''0x0'', ''uuid'': ''bd55b07a-2990-c3c3-7298-59f389db52d0'', ''bus'': ''0x00'', ''func'': ''0x0''}, {''slot'': ''0x1d'', ''requested_vslot'': ''0x20'', ''domain'': ''0x0'', ''uuid'': ''aadfccdf-f152-1701-6987-a870de777e01'', ''bus'': ''0x00'', ''func'': ''0x0''}], ''uuid'': ''1f4d9b89-323c-25fa-acc1-0d51646bb9bc''} [2009-07-22 06:40:21 4292] INFO (pciquirk:90) NO quirks found for PCI device [8086:2937:17aa:20f0] [2009-07-22 06:40:21 4292] DEBUG (pciquirk:133) Permissive mode NOT enabled for PCI device [8086:2937:17aa:20f0] [2009-07-22 06:40:21 4292] DEBUG (pciif:323) pci: enabling ioport 0x1860/0x20 [2009-07-22 06:40:21 4292] DEBUG (pciif:366) pci: enabling irq 20 [2009-07-22 06:40:21 4292] INFO (pciquirk:90) NO quirks found for PCI device [8086:2934:17aa:20f0] [2009-07-22 06:40:21 4292] DEBUG (pciquirk:133) Permissive mode NOT enabled for PCI device [8086:2934:17aa:20f0] [2009-07-22 06:40:21 4292] DEBUG (pciif:323) pci: enabling ioport 0x18c0/0x20 [2009-07-22 06:40:21 4292] DEBUG (pciif:366) pci: enabling irq 16 [2009-07-22 06:40:21 4292] DEBUG (pciif:450) pci: register aer watch /local/domain/0/backend/pci/1/0/aerState [2009-07-22 06:40:21 4292] 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-22 06:40:21 4292] DEBUG (DevController:97) DevController: writing {''vslot-1'': ''20'', ''domain'': ''hvm'', ''frontend'': ''/local/domain/1/device/pci/0'', ''uuid'': ''1f4d9b89-323c-25fa-acc1-0d51646bb9bc'', ''power_mgmt'': ''0'', ''dev-1'': ''0000:00:1d.0'', ''dev-0'': ''0000:00:1a.0'', ''state'': ''1'', ''vslot-0'': ''20'', ''online'': ''1'', ''frontend-id'': ''1'', ''msitranslate'': ''1'', ''uuid-0'': ''bd55b07a-2990-c3c3-7298-59f389db52d0'', ''uuid-1'': ''aadfccdf-f152-1701-6987-a870de777e01'', ''num_devs'': ''2''} to /local/domain/0/backend/pci/1/0. [2009-07-22 06:40:21 4292] 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-22 06:40:21 4292] INFO (image:445) device model pid: 4833 [2009-07-22 06:40:21 4292] INFO (image:547) waiting for sentinel_fifo [2009-07-22 06:40:21 4292] DEBUG (XendDomainInfo:782) XendDomainInfo.pci_device_configure: [''pci'', [''dev'', [''slot'', ''0x1a''], [''requested_vslot'', ''0x20''], [''domain'', ''0x0''], [''uuid'', ''bd55b07a-2990-c3c3-7298-59f389db52d0''], [''bus'', ''0x00''], [''func'', ''0x0'']], [''state'', ''Initialising''], [''sub_state'', ''Booting'']] [2009-07-22 06:40:21 4292] DEBUG (XendDomainInfo:688) XendDomainInfo.hvm_pci_device_insert: {''devs'': [{''slot'': ''0x1a'', ''requested_vslot'': ''0x20'', ''domain'': ''0x0'', ''uuid'': ''bd55b07a-2990-c3c3-7298-59f389db52d0'', ''bus'': ''0x00'', ''func'': ''0x0''}], ''states'': [''Initialising'']} [2009-07-22 06:40:21 4292] DEBUG (XendDomainInfo:699) XendDomainInfo.hvm_pci_device_insert_dev: {''slot'': ''0x1a'', ''requested_vslot'': ''0x20'', ''domain'': ''0x0'', ''uuid'': ''bd55b07a-2990-c3c3-7298-59f389db52d0'', ''bus'': ''0x00'', ''func'': ''0x0''} [2009-07-22 06:40:21 4292] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-22 06:40:21 4292] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-22 06:40:22 4292] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-22 06:40:22 4292] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-22 06:40:22 4292] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-22 06:40:22 4292] INFO (image:495) signalDeviceModel:restore dm state to running [2009-07-22 06:40:22 4292] DEBUG (pciif:131) Reconfiguring PCI device 0000:00:1a.0. [2009-07-22 06:40:22 4292] INFO (pciquirk:90) NO quirks found for PCI device [8086:2937:17aa:20f0] [2009-07-22 06:40:22 4292] DEBUG (pciquirk:133) Permissive mode NOT enabled for PCI device [8086:2937:17aa:20f0] [2009-07-22 06:40:22 4292] DEBUG (pciif:323) pci: enabling ioport 0x1860/0x20 [2009-07-22 06:40:22 4292] DEBUG (pciif:366) pci: enabling irq 20 [2009-07-22 06:40:22 4292] ERROR (XendDomainInfo:477) VM start failed Traceback (most recent call last): File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 457, 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 2552, in _initDomain self._createDevices() File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 2178, in _createDevices self.pci_device_configure_boot() File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 583, in pci_device_configure_boot self.pci_device_configure(i) File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 849, in pci_device_configure num_devs = dev_control.cleanupDevice(devid) File "usr/lib/python2.5/site-packages/xen/xend/server/pciif.py", line 539, in cleanupDevice state = int(self.readBackend(devid, ''state-%i'' % i)) TypeError: int() argument must be a string or a number, not ''NoneType'' [2009-07-22 06:40:22 4292] DEBUG (XendDomainInfo:2710) XendDomainInfo.destroy: domid=1 [2009-07-22 06:40:22 4292] DEBUG (XendDomainInfo:2184) Destroying device model [2009-07-22 06:40:22 4292] INFO (image:572) hvm device model terminated [2009-07-22 06:40:22 4292] DEBUG (XendDomainInfo:2191) Releasing devices [2009-07-22 06:40:22 4292] DEBUG (XendDomainInfo:2204) Removing vbd/768 [2009-07-22 06:40:22 4292] DEBUG (XendDomainInfo:1119) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768 [2009-07-22 06:40:23 4292] DEBUG (XendDomainInfo:2204) Removing vfb/0 [2009-07-22 06:40:23 4292] DEBUG (XendDomainInfo:1119) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0 [2009-07-22 06:40:23 4292] DEBUG (XendDomainInfo:2204) Removing pci/0 [2009-07-22 06:40:23 4292] DEBUG (XendDomainInfo:1119) XendDomainInfo.destroyDevice: deviceClass = pci, device = pci/0 [2009-07-22 06:40:23 4292] DEBUG (pciif:586) pci: unregister aer watch [2009-07-22 06:40:23 4292] DEBUG (XendDomainInfo:2189) No device model [2009-07-22 06:40:23 4292] DEBUG (XendDomainInfo:2191) Releasing devices [2009-07-22 06:40:23 4292] ERROR (XendDomainInfo:98) Domain construction failed Traceback (most recent call last): File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 96, in create vm.start() File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 457, 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 2552, in _initDomain self._createDevices() File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 2178, in _createDevices self.pci_device_configure_boot() File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 583, in pci_device_configure_boot self.pci_device_configure(i) File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 849, in pci_device_configure num_devs = dev_control.cleanupDevice(devid) File "usr/lib/python2.5/site-packages/xen/xend/server/pciif.py", line 539, in cleanupDevice state = int(self.readBackend(devid, ''state-%i'' % i)) TypeError: int() argument must be a string or a number, not ''NoneType'' [2009-07-22 06:40:23 4292] 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 96, in create vm.start() File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 457, 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 2552, in _initDomain self._createDevices() File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 2178, in _createDevices self.pci_device_configure_boot() File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 583, in pci_device_configure_boot self.pci_device_configure(i) File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 849, in pci_device_configure num_devs = dev_control.cleanupDevice(devid) File "usr/lib/python2.5/site-packages/xen/xend/server/pciif.py", line 539, in cleanupDevice state = int(self.readBackend(devid, ''state-%i'' % i)) TypeError: int() argument must be a string or a number, not ''NoneType'' [2009-07-26 05:51:47 4292] DEBUG (SrvServer:76) SrvServer.cleanup() [2009-07-26 05:51:47 4292] DEBUG (XMLRPCServer:236) XMLRPCServer.cleanup() [2009-07-26 05:51:47 4292] DEBUG (XMLRPCServer:236) XMLRPCServer.cleanup() [2009-07-26 05:51:47 4292] DEBUG (XendDomain:620) cleanup_domains [2009-07-26 05:51:47 4288] INFO (SrvDaemon:220) Xend exited with status 0. [2009-07-26 05:58:22 4286] INFO (SrvDaemon:332) Xend Daemon started [2009-07-26 05:58:22 4286] INFO (SrvDaemon:336) Xend changeset: Tue Jul 14 12:16:27 2009 +1000 19747:789778e3326d. [2009-07-26 05:58:22 4286] INFO (XendNetwork:114) Not recreating missing unmanaged network tmpbridge [2009-07-26 05:58:23 4286] DEBUG (XendDomainInfo:144) XendDomainInfo.recreate({''max_vcpu_id'': 1, ''cpu_time'': 10812777199L, ''ssidref'': 0, ''hvm'': 0, ''shutdown_reason'': 0, ''dying'': 0, ''online_vcpus'': 2, ''domid'': 0, ''paused'': 0, ''crashed'': 0, ''running'': 1, ''maxmem_kb'': 17179869180L, ''shutdown'': 0, ''mem_kb'': 1913836L, ''handle'': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ''blocked'': 0, ''name'': ''Domain-0''}) [2009-07-26 05:58:23 4286] INFO (XendDomainInfo:162) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0 [2009-07-26 05:58:23 4286] DEBUG (XendDomainInfo:3037) Storing VM details: {''on_xend_stop'': ''ignore'', ''shadow_memory'': ''0'', ''uuid'': ''00000000-0000-0000-0000-000000000000'', ''on_reboot'': ''restart'', ''image'': ''(linux (kernel ))'', ''on_poweroff'': ''destroy'', ''bootloader_args'': '''', ''on_xend_start'': ''ignore'', ''on_crash'': ''restart'', ''xend/restart_count'': ''0'', ''vcpus'': ''2'', ''vcpu_avail'': ''3'', ''bootloader'': '''', ''name'': ''Domain-0''} [2009-07-26 05:58:23 4286] DEBUG (XendDomainInfo:1599) Storing domain details: {''name'': ''Domain-0'', ''console/limit'': ''1048576'', ''memory/target'': ''1913836'', ''vm'': ''/vm/00000000-0000-0000-0000-000000000000'', ''domid'': ''0'', ''cpu/0/availability'': ''online'', ''cpu/1/availability'': ''online'', ''control/platform-feature-multiprocessor-suspend'': ''1'', ''console/type'': ''xenconsoled''} [2009-07-26 05:58:23 4286] DEBUG (XendDomain:452) Adding Domain: 0 [2009-07-26 05:58:23 4286] DEBUG (XendDomain:386) number of vcpus to use is 0 [2009-07-26 05:58:23 4286] DEBUG (XendDomainInfo:1686) XendDomainInfo.handleShutdownWatch [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: VBD.set_device not found [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: VBD.set_type not found [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: session.get_all_records not found [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: event.get_record not found [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: event.get_all not found [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: VIF.get_network not found [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: VIF.set_device not found [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: VIF.set_MAC not found [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: VIF.set_MTU not found [2009-07-26 05:58:23 4286] WARNING (XendAPI:701) API call: debug.get_all not found [2009-07-26 05:58:23 4286] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled for this server. [2009-07-26 05:58:23 4286] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xmlrpc.sock. [2009-07-26 05:59:11 4286] DEBUG (XendDomainInfo:96) XendDomainInfo.create([''vm'', [''name'', ''hvm''], [''memory'', 1024], [''shadow_memory'', 8], [''vcpus'', 1], [''on_xend_start'', ''ignore''], [''on_xend_stop'', ''ignore''], [''image'', [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], [''videoram'', 4], [''device_model'', ''/usr/lib64/xen/bin/qemu-dm.debug''], [''pae'', 1], [''vcpus'', 1], [''boot'', ''c''], [''fda'', ''''], [''fdb'', ''''], [''timer_mode'', 1], [''localtime'', 0], [''serial'', ''pty''], [''stdvga'', 0], [''isa'', 0], [''nographic'', 0], [''soundhw'', ''''], [''vnc'', 1], [''vncdisplay'', 1], [''vncunused'', 1], [''vnclisten'', ''0.0.0.0''], [''sdl'', 0], [''display'', ''guyg-desktop:0''], [''xauthority'', ''/root/.Xauthority''], [''rtc_timeoffset'', 0], [''monitor'', 0], [''acpi'', 1], [''apic'', 1], [''usb'', 0], [''usbdevice'', ''''], [''keymap'', ''''], [''pci'', [[''0x0000'', ''0x00'', ''0x1a'', ''0x0'', ''0x100'', [], ''00:1a.0''], [''0x0000'', ''0x00'', ''0x1d'', ''0x0'', ''0x100'', [], ''00:1d.0'']]], [''hpet'', 0], [''guest_os_type'', ''default''], [''hap'', 1], [''cpuid'', []], [''cpuid_check'', []], [''viridian'', 0], [''pci_msitranslate'', 1], [''vpt_align'', 1], [''pci_power_mgmt'', 0], [''xen_platform_pci'', 1], [''vncpasswd'', ''XXXXXXXX'']]], [''s3_integrity'', 1], [''device'', [''vbd'', [''uname'', ''file:/root/xp2_t400_ati.img''], [''dev'', ''hda''], [''mode'', ''w'']]], [''device'', [''pci'', [''dev'', [''slot'', ''0x1a''], [''domain'', ''0x0000''], [''key'', ''00:1a.0''], [''bus'', ''0x00''], [''vdevfn'', ''0x100''], [''func'', ''0x0'']], [''dev'', [''slot'', ''0x1d''], [''domain'', ''0x0000''], [''key'', ''00:1d.0''], [''bus'', ''0x00''], [''vdevfn'', ''0x100''], [''func'', ''0x0'']]]]]) [2009-07-26 05:59:11 4286] DEBUG (XendDomainInfo:2280) XendDomainInfo.constructDomain [2009-07-26 05:59:11 4286] DEBUG (balloon:166) Balloon: 127712 KiB free; need 4096; done. [2009-07-26 05:59:11 4286] DEBUG (XendDomain:452) Adding Domain: 1 [2009-07-26 05:59:11 4286] DEBUG (XendDomainInfo:2482) XendDomainInfo.initDomain: 1 256 [2009-07-26 05:59:11 4286] DEBUG (image:322) No VNC passwd configured for vfb access [2009-07-26 05:59:11 4286] DEBUG (image:825) args: boot, val: c [2009-07-26 05:59:11 4286] DEBUG (image:825) args: fda, val: None [2009-07-26 05:59:11 4286] DEBUG (image:825) args: fdb, val: None [2009-07-26 05:59:11 4286] DEBUG (image:825) args: soundhw, val: None [2009-07-26 05:59:11 4286] DEBUG (image:825) args: localtime, val: 0 [2009-07-26 05:59:11 4286] DEBUG (image:825) args: serial, val: [''pty''] [2009-07-26 05:59:11 4286] DEBUG (image:825) args: std-vga, val: 0 [2009-07-26 05:59:11 4286] DEBUG (image:825) args: isa, val: 0 [2009-07-26 05:59:11 4286] DEBUG (image:825) args: acpi, val: 1 [2009-07-26 05:59:11 4286] DEBUG (image:825) args: usb, val: 0 [2009-07-26 05:59:11 4286] DEBUG (image:825) args: usbdevice, val: None [2009-07-26 05:59:11 4286] INFO (image:761) Need to create platform device.[domid:1] [2009-07-26 05:59:11 4286] DEBUG (XendDomainInfo:2506) _initDomain:shadow_memory=0x8, memory_static_max=0x40000000, memory_static_min=0x0. [2009-07-26 05:59:11 4286] DEBUG (balloon:172) Balloon: 126296 KiB free; 0 to scrub; need 1065984; retries: 20. [2009-07-26 05:59:11 4286] DEBUG (balloon:187) Balloon: setting dom0 target to 951 MiB. [2009-07-26 05:59:11 4286] DEBUG (XendDomainInfo:1280) Setting memory target of domain Domain-0 (0) to 951 MiB. [2009-07-26 05:59:11 4286] DEBUG (balloon:172) Balloon: 286040 KiB free; 0 to scrub; need 1065984; retries: 20. [2009-07-26 05:59:11 4286] DEBUG (balloon:187) Balloon: setting dom0 target to 949 MiB. [2009-07-26 05:59:11 4286] DEBUG (XendDomainInfo:1280) Setting memory target of domain Domain-0 (0) to 949 MiB. [2009-07-26 05:59:12 4286] DEBUG (balloon:172) Balloon: 623960 KiB free; 0 to scrub; need 1065984; retries: 20. [2009-07-26 05:59:12 4286] DEBUG (balloon:187) Balloon: setting dom0 target to 947 MiB. [2009-07-26 05:59:12 4286] DEBUG (XendDomainInfo:1280) Setting memory target of domain Domain-0 (0) to 947 MiB. [2009-07-26 05:59:12 4286] DEBUG (balloon:166) Balloon: 1070404 KiB free; need 1065984; done. [2009-07-26 05:59:12 4286] INFO (image:173) buildDomain os=hvm dom=1 vcpus=1 [2009-07-26 05:59:12 4286] DEBUG (image:878) domid = 1 [2009-07-26 05:59:12 4286] DEBUG (image:879) image /usr/lib/xen/boot/hvmloader [2009-07-26 05:59:12 4286] DEBUG (image:880) store_evtchn = 2 [2009-07-26 05:59:12 4286] DEBUG (image:881) memsize = 1024 [2009-07-26 05:59:12 4286] DEBUG (image:882) target = 1024 [2009-07-26 05:59:12 4286] DEBUG (image:883) vcpus = 1 [2009-07-26 05:59:12 4286] DEBUG (image:884) acpi = 1 [2009-07-26 05:59:12 4286] DEBUG (image:885) apic = 1 [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2137) createDevice: vfb : {''vncunused'': 1, ''other_config'': {''vncunused'': 1, ''vnclisten'': ''0.0.0.0'', ''vnc'': ''1'', ''vncdisplay'': 1}, ''vnc'': ''1'', ''uuid'': ''3211b22b-568e-cfc8-fe44-5defb76b5461'', ''vnclisten'': ''0.0.0.0'', ''vncdisplay'': 1} [2009-07-26 05:59:12 4286] 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-26 05:59:12 4286] DEBUG (DevController:97) DevController: writing {''vncunused'': ''1'', ''domain'': ''hvm'', ''vnc'': ''1'', ''uuid'': ''3211b22b-568e-cfc8-fe44-5defb76b5461'', ''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-26 05:59:12 4286] INFO (XendDomainInfo:2137) createDevice: vbd : {''uuid'': ''1be71a41-8080-84ce-dd0b-06402a5eaa79'', ''bootable'': 1, ''driver'': ''paravirtualised'', ''dev'': ''hda'', ''uname'': ''file:/root/xp2_t400_ati.img'', ''mode'': ''w''} [2009-07-26 05:59:12 4286] 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-26 05:59:12 4286] DEBUG (DevController:97) DevController: writing {''domain'': ''hvm'', ''frontend'': ''/local/domain/1/device/vbd/768'', ''uuid'': ''1be71a41-8080-84ce-dd0b-06402a5eaa79'', ''bootable'': ''1'', ''dev'': ''hda'', ''state'': ''1'', ''params'': ''/root/xp2_t400_ati.img'', ''mode'': ''w'', ''online'': ''1'', ''frontend-id'': ''1'', ''type'': ''file''} to /local/domain/0/backend/vbd/1/768. [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2137) createDevice: pci : {''devs'': [{''slot'': ''0x1a'', ''domain'': ''0x0000'', ''key'': ''00:1a.0'', ''bus'': ''0x00'', ''vdevfn'': ''0x100'', ''func'': ''0x0'', ''uuid'': ''f45346d9-7b0a-5012-9bb6-cbcc155e7707''}, {''slot'': ''0x1d'', ''domain'': ''0x0000'', ''key'': ''00:1d.0'', ''bus'': ''0x00'', ''vdevfn'': ''0x100'', ''func'': ''0x0'', ''uuid'': ''1960e4e0-bea2-356d-312c-73e25fba8620''}], ''uuid'': ''6974734d-b37a-eecc-d633-c21200fdb227''} [2009-07-26 05:59:12 4286] DEBUG (pciif:420) pci: register aer watch /local/domain/0/backend/pci/1/0/aerState [2009-07-26 05:59:12 4286] 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-26 05:59:12 4286] DEBUG (DevController:97) DevController: writing {''key-1'': ''00:1d.0'', ''key-0'': ''00:1a.0'', ''vdevfn-0'': ''100'', ''vdevfn-1'': ''100'', ''power_mgmt'': ''0'', ''dev-1'': ''0000:00:1d.0'', ''dev-0'': ''0000:00:1a.0'', ''domain'': ''hvm'', ''frontend-id'': ''1'', ''state'': ''1'', ''num_devs'': ''2'', ''online'': ''1'', ''frontend'': ''/local/domain/1/device/pci/0'', ''msitranslate'': ''1'', ''uuid-0'': ''f45346d9-7b0a-5012-9bb6-cbcc155e7707'', ''uuid-1'': ''1960e4e0-bea2-356d-312c-73e25fba8620'', ''uuid'': ''6974734d-b37a-eecc-d633-c21200fdb227''} to /local/domain/0/backend/pci/1/0. [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1a.0 at index 0 with state None [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1d.0 at index 1 with state None [2009-07-26 05:59:12 4286] 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-26 05:59:12 4286] INFO (image:445) device model pid: 4821 [2009-07-26 05:59:12 4286] INFO (image:547) waiting for sentinel_fifo [2009-07-26 05:59:12 4286] DEBUG (XendDomainInfo:807) XendDomainInfo.pci_device_configure: [''pci'', [''dev'', [''slot'', ''0x1a''], [''domain'', ''0x0000''], [''key'', ''00:1a.0''], [''bus'', ''0x00''], [''vdevfn'', ''0x100''], [''func'', ''0x0''], [''uuid'', ''f45346d9-7b0a-5012-9bb6-cbcc155e7707'']], [''state'', ''Initialising''], [''sub_state'', ''Booting'']] [2009-07-26 05:59:12 4286] DEBUG (XendDomainInfo:715) XendDomainInfo.hvm_pci_device_insert: {''devs'': [{''slot'': ''0x1a'', ''domain'': ''0x0000'', ''key'': ''00:1a.0'', ''bus'': ''0x00'', ''vdevfn'': ''0x100'', ''func'': ''0x0'', ''uuid'': ''f45346d9-7b0a-5012-9bb6-cbcc155e7707''}], ''states'': [''Initialising'']} [2009-07-26 05:59:12 4286] DEBUG (XendDomainInfo:726) XendDomainInfo.hvm_pci_device_insert_dev: {''slot'': ''0x1a'', ''domain'': ''0x0000'', ''key'': ''00:1a.0'', ''bus'': ''0x00'', ''vdevfn'': ''0x100'', ''func'': ''0x0'', ''uuid'': ''f45346d9-7b0a-5012-9bb6-cbcc155e7707''} [2009-07-26 05:59:12 4286] DEBUG (XendDomainInfo:735) XendDomainInfo.hvm_pci_device_insert_dev: 0000:00:1a.0@100 [2009-07-26 05:59:12 4286] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-26 05:59:12 4286] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-26 05:59:12 4286] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-26 05:59:12 4286] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-26 05:59:13 4286] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-26 05:59:13 4286] DEBUG (image:465) signalDeviceModel: orig_state is None, retrying [2009-07-26 05:59:13 4286] INFO (image:495) signalDeviceModel:restore dm state to running [2009-07-26 05:59:13 4286] DEBUG (pciif:114) reconfigureDevice: num_devs=1 num_olddevs=2 [2009-07-26 05:59:13 4286] DEBUG (pciif:138) Reconfiguring PCI device 0000:00:1a.0 at index 0 with state None. [2009-07-26 05:59:13 4286] INFO (pciquirk:91) NO quirks found for PCI device [8086:2937:17aa:20f0] [2009-07-26 05:59:13 4286] DEBUG (pciquirk:134) Permissive mode NOT enabled for PCI device [8086:2937:17aa:20f0] [2009-07-26 05:59:13 4286] DEBUG (pciif:305) pci: enabling ioport 0x1860/0x20 [2009-07-26 05:59:13 4286] DEBUG (pciif:348) pci: enabling irq 20 [2009-07-26 05:59:13 4286] DEBUG (pciif:510) Cleanup PCI device 0000:00:1a.0 at index 0 with state 1 [2009-07-26 05:59:13 4286] DEBUG (pciif:510) Cleanup PCI device 0000:00:1d.0 at index 1 with state None [2009-07-26 05:59:13 4286] DEBUG (XendDomainInfo:807) XendDomainInfo.pci_device_configure: [''pci'', [''dev'', [''slot'', ''0x1d''], [''domain'', ''0x0000''], [''key'', ''00:1d.0''], [''bus'', ''0x00''], [''vdevfn'', ''0x100''], [''func'', ''0x0''], [''uuid'', ''1960e4e0-bea2-356d-312c-73e25fba8620'']], [''state'', ''Initialising''], [''sub_state'', ''Booting'']] [2009-07-26 05:59:13 4286] DEBUG (XendDomainInfo:715) XendDomainInfo.hvm_pci_device_insert: {''devs'': [{''slot'': ''0x1d'', ''domain'': ''0x0000'', ''key'': ''00:1d.0'', ''bus'': ''0x00'', ''vdevfn'': ''0x100'', ''func'': ''0x0'', ''uuid'': ''1960e4e0-bea2-356d-312c-73e25fba8620''}], ''states'': [''Initialising'']} [2009-07-26 05:59:13 4286] DEBUG (XendDomainInfo:726) XendDomainInfo.hvm_pci_device_insert_dev: {''slot'': ''0x1d'', ''domain'': ''0x0000'', ''key'': ''00:1d.0'', ''bus'': ''0x00'', ''vdevfn'': ''0x100'', ''func'': ''0x0'', ''uuid'': ''1960e4e0-bea2-356d-312c-73e25fba8620''} [2009-07-26 05:59:13 4286] DEBUG (XendDomainInfo:735) XendDomainInfo.hvm_pci_device_insert_dev: 0000:00:1d.0@100 [2009-07-26 05:59:13 4286] INFO (image:495) signalDeviceModel:restore dm state to running [2009-07-26 05:59:13 4286] DEBUG (pciif:114) reconfigureDevice: num_devs=1 num_olddevs=2 [2009-07-26 05:59:13 4286] DEBUG (pciif:138) Reconfiguring PCI device 0000:00:1d.0 at index 1 with state None. [2009-07-26 05:59:13 4286] INFO (pciquirk:91) NO quirks found for PCI device [8086:2934:17aa:20f0] [2009-07-26 05:59:13 4286] DEBUG (pciquirk:134) Permissive mode NOT enabled for PCI device [8086:2934:17aa:20f0] [2009-07-26 05:59:13 4286] DEBUG (pciif:305) pci: enabling ioport 0x18c0/0x20 [2009-07-26 05:59:13 4286] DEBUG (pciif:348) pci: enabling irq 16 [2009-07-26 05:59:13 4286] DEBUG (pciif:510) Cleanup PCI device 0000:00:1a.0 at index 0 with state 1 [2009-07-26 05:59:13 4286] DEBUG (pciif:510) Cleanup PCI device 0000:00:1d.0 at index 1 with state 1 [2009-07-26 05:59:13 4286] DEBUG (XendDomainInfo:3037) Storing VM details: {''on_xend_stop'': ''ignore'', ''shadow_memory'': ''9'', ''uuid'': ''f25320f7-210f-f751-79d6-a160fcf58db1'', ''on_reboot'': ''restart'', ''start_time'': ''1248602353.77'', ''on_poweroff'': ''destroy'', ''bootloader_args'': '''', ''on_xend_start'': ''ignore'', ''on_crash'': ''restart'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''bootloader'': '''', ''image'': ''(hvm (kernel ) (videoram 4) (hpet 0) (stdvga 0) (vnclisten 0.0.0.0) (loader /usr/lib/xen/boot/hvmloader) (serial pty) (vncunused 1) (xen_platform_pci 1) (boot c) (rtc_timeoffset 0) (pci ((0x0000 0x00 0x1a 0x0 0x100 ()) (0x0000 0x00 0x1d 0x0 0x100 ()))) (pae 1) (vpt_align 1) (hap 1) (viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (nographic 0) (guest_os_type default) (vncdisplay 1) (pci_msitranslate 1) (apic 1) (sdl 0) (monitor 0) (device_model /usr/lib64/xen/bin/qemu-dm.debug) (pci_power_mgmt 0) (usb 0) (xauthority /root/.Xauthority) (isa 0) (display guyg-desktop:0) (notes (SUSPEND_CANCEL 1)))'', ''name'': ''hvm''} [2009-07-26 05:59:13 4286] DEBUG (XendDomainInfo:1599) Storing domain details: {''console/port'': ''3'', ''name'': ''hvm'', ''console/limit'': ''1048576'', ''store/port'': ''2'', ''vm'': ''/vm/f25320f7-210f-f751-79d6-a160fcf58db1'', ''domid'': ''1'', ''image/suspend-cancel'': ''1'', ''cpu/0/availability'': ''online'', ''memory/target'': ''1048576'', ''control/platform-feature-multiprocessor-suspend'': ''1'', ''store/ring-ref'': ''1044476'', ''console/type'': ''ioemu''} [2009-07-26 05:59:13 4286] DEBUG (DevController:95) DevController: writing {''state'': ''1'', ''backend-id'': ''0'', ''backend'': ''/local/domain/0/backend/console/1/0''} to /local/domain/1/device/console/0. [2009-07-26 05:59:13 4286] DEBUG (DevController:97) DevController: writing {''domain'': ''hvm'', ''frontend'': ''/local/domain/1/device/console/0'', ''uuid'': ''78565c77-aff9-cbc6-c1c7-2dc7cfa5e5d6'', ''frontend-id'': ''1'', ''state'': ''1'', ''location'': ''3'', ''online'': ''1'', ''protocol'': ''vt100''} to /local/domain/0/backend/console/1/0. [2009-07-26 05:59:13 4286] DEBUG (pciif:424) XendDomainInfo.handleAerStateWatch [2009-07-26 05:59:13 4286] DEBUG (XendDomainInfo:1686) XendDomainInfo.handleShutdownWatch [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices vif. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices vscsi. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices vbd. [2009-07-26 05:59:13 4286] DEBUG (DevController:144) Waiting for 768. [2009-07-26 05:59:13 4286] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vbd/1/768/hotplug-status. [2009-07-26 05:59:13 4286] DEBUG (DevController:643) hotplugStatusCallback 1. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices irq. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices vkbd. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices vfb. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices console. [2009-07-26 05:59:13 4286] DEBUG (DevController:144) Waiting for 0. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices pci. [2009-07-26 05:59:13 4286] DEBUG (DevController:144) Waiting for 0. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices ioports. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices tap. [2009-07-26 05:59:13 4286] DEBUG (DevController:139) Waiting for devices vtpm. [2009-07-26 05:59:13 4286] INFO (XendDomain:1180) Domain hvm (1) unpaused. [2009-07-26 05:59:18 4286] DEBUG (XendDomainInfo:2709) XendDomainInfo.destroy: domid=1 [2009-07-26 05:59:18 4286] DEBUG (XendDomainInfo:2183) Destroying device model [2009-07-26 05:59:18 4286] INFO (image:572) hvm device model terminated [2009-07-26 05:59:18 4286] DEBUG (XendDomainInfo:2190) Releasing devices [2009-07-26 05:59:18 4286] DEBUG (XendDomainInfo:2203) Removing vbd/768 [2009-07-26 05:59:18 4286] DEBUG (XendDomainInfo:1120) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768 [2009-07-26 05:59:18 4286] DEBUG (XendDomainInfo:2203) Removing vfb/0 [2009-07-26 05:59:18 4286] DEBUG (XendDomainInfo:1120) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0 [2009-07-26 05:59:18 4286] DEBUG (XendDomainInfo:2203) Removing console/0 [2009-07-26 05:59:18 4286] DEBUG (XendDomainInfo:1120) XendDomainInfo.destroyDevice: deviceClass = console, device console/0 [2009-07-26 05:59:19 4286] DEBUG (XendDomainInfo:2203) Removing pci/0 [2009-07-26 05:59:19 4286] DEBUG (XendDomainInfo:1120) XendDomainInfo.destroyDevice: deviceClass = pci, device = pci/0 [2009-07-26 05:59:19 4286] DEBUG (pciif:546) pci: unregister aer watch [2009-07-26 05:59:19 4286] DEBUG (XendDomainInfo:2188) No device model [2009-07-26 05:59:19 4286] DEBUG (XendDomainInfo:2190) Releasing devices Tom On Fri, Jul 24, 2009 at 12:05 PM, Simon Horman<horms@verge.net.au> wrote:> Hi Tom, > > I''m still scratching my head over this one. Would it be possible for you > to apply the following patch and post the resulting xend.log? > > It includes your work-around as well as some extra debugging messages. I''m > interested to try and see what kind of state your xenstore is getting into. > > Thanks > > > Index: xen-3.4-testing-pass-through-multi-function/tools/python/xen/xend/XendDomainInfo.py > ==================================================================> --- xen-3.4-testing-pass-through-multi-function.orig/tools/python/xen/xend/XendDomainInfo.py 2009-07-24 19:01:00.000000000 +1000 > +++ xen-3.4-testing-pass-through-multi-function/tools/python/xen/xend/XendDomainInfo.py 2009-07-24 19:02:35.000000000 +1000 > @@ -2137,6 +2137,13 @@ class XendDomainInfo: > log.info("createDevice: %s : %s" % (devclass, scrub_password(config))) > dev_uuid = config.get(''uuid'') > devid = self._createDevice(devclass, config) > + > + num_devs = self.getDeviceController(devclass).readBackend(devid, "num_devs") > + if num_devs: > + for i in range(int(num_devs)): > + dev = self.getDeviceController(devclass).readBackend(devid, "dev-%i" % i) > + state = self.getDeviceController(devclass).readBackend(devid, "state-%i" % i) > + log.info("Created PCI device %s at index %i with state %s" % (dev, i, state)) > > # store devid in XendConfig for caching reasons > if dev_uuid in self.info[''devices'']: > Index: xen-3.4-testing-pass-through-multi-function/tools/python/xen/xend/server/pciif.py > ==================================================================> --- xen-3.4-testing-pass-through-multi-function.orig/tools/python/xen/xend/server/pciif.py 2009-07-24 14:53:03.000000000 +1000 > +++ xen-3.4-testing-pass-through-multi-function/tools/python/xen/xend/server/pciif.py 2009-07-24 19:02:55.000000000 +1000 > @@ -110,6 +110,9 @@ class PciController(DevController): > states = config.get(''states'', []) > num_olddevs = int(self.readBackend(devid, ''num_devs'')) > > + log.debug(''reconfigureDevice: num_devs=%d num_olddevs=%d'' % > + (num_devs, num_olddevs)) > + > for i in range(num_devs): > try: > dev = back[''dev-%i'' % i] > @@ -126,10 +129,13 @@ class PciController(DevController): > devno = self.reconfigureDevice_find(devid, num_olddevs, dev) > if devno == None: > devno = num_olddevs + i > - log.debug(''Attaching PCI device %s.'' % dev) > + log.debug(''Attaching PCI device %s at index %d.'' % > + (dev, devno)) > attaching = True > else: > - log.debug(''Reconfiguring PCI device %s.'' % dev) > + state = self.readBackend(devid, ''state-%i'' % devno) > + log.debug((''Reconfiguring PCI device %s at index %d '' + > + ''with state %s.'') % (dev, devno, state)) > attaching = False > > self.setupOneDevice(parse_pci_name(dev)) > @@ -499,7 +505,14 @@ class PciController(DevController): > num_devs = int(self.readBackend(devid, ''num_devs'')) > new_num_devs = 0 > for i in range(num_devs): > - state = int(self.readBackend(devid, ''state-%i'' % i)) > + dev = self.readBackend(devid, ''dev-%i'' % i) > + state_str = self.readBackend(devid, ''state-%i'' % i) > + log.debug(''Cleanup PCI device %s at index %d with state %s'' % (dev, i, state_str)) > + try: > + state = int(state_str) > + except: > + state = xenbusState[''Unknown''] > + > if state == xenbusState[''Closing'']: > # Detach I/O resources. > pci_dev = parse_pci_name(self.readBackend(devid, ''dev-%i'' % i)) >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Simon Horman
2009-Jul-27 01:58 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
On Sun, Jul 26, 2009 at 01:01:02PM +0300, Tom Rotenberg wrote:> Simon, > > (BTW - Did you see my other mail, about a problem, which causes the > machine to freeze? i suspect that this might be due to the multi-fn > pass-through code. Can u please give your opinion about it?)Its quite likely that the problem that you are seeing is caused by multi-function. Especially as a) you are probably the only person to exercise the code in this way so far and b) the PCI pass-through code is in my opinion very fragile. I haven''t looked closely into the problem yet - I was kind of hoping someone else would while I was tracking down the cause of the other problems that you have reported.> Here is the resulting log:[snip]> [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1a.0 at index 0 with state None > [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1d.0 at index 1 with state NoneThanks, that is very interesting. It looks like 0000:00:1a.0 is being inserted into xenstore twice, which is invalid. I''ll hunt further to see if I can work out why that is occurring. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tom Rotenberg
2009-Jul-27 08:03 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
Simon, Thanks for investing the time to solve the bugs i''m reporting. I must say, that the second problem i reported (the complete machine freeze), is much important in my opinion, so i also hope, that someone from the community, will give it a look, it''s certainly blocking me, and i don''t know from where to start on this issue. Anyway, i''m waiting for your inputs about the second problem. Tom On Mon, Jul 27, 2009 at 4:58 AM, Simon Horman<horms@verge.net.au> wrote:> On Sun, Jul 26, 2009 at 01:01:02PM +0300, Tom Rotenberg wrote: >> Simon, >> >> (BTW - Did you see my other mail, about a problem, which causes the >> machine to freeze? i suspect that this might be due to the multi-fn >> pass-through code. Can u please give your opinion about it?) > > Its quite likely that the problem that you are seeing is caused by > multi-function. Especially as a) you are probably the only person to > exercise the code in this way so far and b) the PCI pass-through code is > in my opinion very fragile. > > I haven''t looked closely into the problem yet - I was kind of hoping > someone else would while I was tracking down the cause of the > other problems that you have reported. > >> Here is the resulting log: > > [snip] > >> [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1a.0 at index 0 with state None >> [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1d.0 at index 1 with state None > > Thanks, that is very interesting. It looks like 0000:00:1a.0 is > being inserted into xenstore twice, which is invalid. I''ll hunt > further to see if I can work out why that is occurring. > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Simon Horman
2009-Jul-27 08:38 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
On Mon, Jul 27, 2009 at 11:03:19AM +0300, Tom Rotenberg wrote:> Simon, > > Thanks for investing the time to solve the bugs i''m reporting. > > I must say, that the second problem i reported (the complete machine > freeze), is much important in my opinion, so i also hope, that someone > from the community, will give it a look, it''s certainly blocking me, > and i don''t know from where to start on this issue. Anyway, i''m > waiting for your inputs about the second problem.I suspect you are correct. I''ll try and spend some time on it very soon.> On Mon, Jul 27, 2009 at 4:58 AM, Simon Horman<horms@verge.net.au> wrote: > > On Sun, Jul 26, 2009 at 01:01:02PM +0300, Tom Rotenberg wrote: > >> Simon, > >> > >> (BTW - Did you see my other mail, about a problem, which causes the > >> machine to freeze? i suspect that this might be due to the multi-fn > >> pass-through code. Can u please give your opinion about it?) > > > > Its quite likely that the problem that you are seeing is caused by > > multi-function. Especially as a) you are probably the only person to > > exercise the code in this way so far and b) the PCI pass-through code is > > in my opinion very fragile. > > > > I haven''t looked closely into the problem yet - I was kind of hoping > > someone else would while I was tracking down the cause of the > > other problems that you have reported. > > > >> Here is the resulting log: > > > > [snip] > > > >> [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1a.0 at index 0 with state None > >> [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1d.0 at index 1 with state None > > > > Thanks, that is very interesting. It looks like 0000:00:1a.0 is > > being inserted into xenstore twice, which is invalid. I''ll hunt > > further to see if I can work out why that is occurring.On closer examination 0000:00:1a.0 != 0000:00:1d.0, so my comment immediately above is wrong. What I now think is happening is that for some reason on your system when _createDevices() initialises the devices in xenstore using _createDevice() then end up with no state entry. Whereas on my system then end up with state 3=Initialised. It seems to me that actually the behaviour of your system is correct and my system is bogus. I really don''t know why that is the case - are you using the stock xenstore implementation in C, or the Ocaml version? In any case, it seems to be that your original work-around was more or less correct. I''ll just tweak it a bit to handle the case where cleanupDevices() is shuffling entries because one or more have been deleted and repost it. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tom Rotenberg
2009-Jul-27 08:53 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
Simon, About the xenstore implementation - i have no clew about it, so i guess i''m using the default implementation. So, you will post a fix patch for it? Thanks, Tom On Mon, Jul 27, 2009 at 11:38 AM, Simon Horman<horms@verge.net.au> wrote:> On Mon, Jul 27, 2009 at 11:03:19AM +0300, Tom Rotenberg wrote: >> Simon, >> >> Thanks for investing the time to solve the bugs i''m reporting. >> >> I must say, that the second problem i reported (the complete machine >> freeze), is much important in my opinion, so i also hope, that someone >> from the community, will give it a look, it''s certainly blocking me, >> and i don''t know from where to start on this issue. Anyway, i''m >> waiting for your inputs about the second problem. > > I suspect you are correct. I''ll try and spend some time on it very soon. > >> On Mon, Jul 27, 2009 at 4:58 AM, Simon Horman<horms@verge.net.au> wrote: >> > On Sun, Jul 26, 2009 at 01:01:02PM +0300, Tom Rotenberg wrote: >> >> Simon, >> >> >> >> (BTW - Did you see my other mail, about a problem, which causes the >> >> machine to freeze? i suspect that this might be due to the multi-fn >> >> pass-through code. Can u please give your opinion about it?) >> > >> > Its quite likely that the problem that you are seeing is caused by >> > multi-function. Especially as a) you are probably the only person to >> > exercise the code in this way so far and b) the PCI pass-through code is >> > in my opinion very fragile. >> > >> > I haven''t looked closely into the problem yet - I was kind of hoping >> > someone else would while I was tracking down the cause of the >> > other problems that you have reported. >> > >> >> Here is the resulting log: >> > >> > [snip] >> > >> >> [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1a.0 at index 0 with state None >> >> [2009-07-26 05:59:12 4286] INFO (XendDomainInfo:2146) Created PCI device 0000:00:1d.0 at index 1 with state None >> > >> > Thanks, that is very interesting. It looks like 0000:00:1a.0 is >> > being inserted into xenstore twice, which is invalid. I''ll hunt >> > further to see if I can work out why that is occurring. > > On closer examination 0000:00:1a.0 != 0000:00:1d.0, so my comment > immediately above is wrong. > > What I now think is happening is that for some reason on your system > when _createDevices() initialises the devices in xenstore using > _createDevice() then end up with no state entry. Whereas on my system > then end up with state 3=Initialised. > > It seems to me that actually the behaviour of your system > is correct and my system is bogus. I really don''t know why > that is the case - are you using the stock xenstore implementation > in C, or the Ocaml version? > > In any case, it seems to be that your original work-around was more or less > correct. I''ll just tweak it a bit to handle the case where cleanupDevices() > is shuffling entries because one or more have been deleted and repost it. >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Simon Horman
2009-Jul-27 09:19 UTC
Re: [Xen-devel] Re: Xen 3.4 multi-function pass-through tree, isn''t working...
On Mon, Jul 27, 2009 at 11:53:12AM +0300, Tom Rotenberg wrote:> Simon, > > About the xenstore implementation - i have no clew about it, so i > guess i''m using the default implementation.I guess so too.> So, you will post a fix patch for it?Yes, I''m just running it through some tests to be paranoid first. Once they finish I''ll push it to the 3.4-testing back-port trees and post it to xen-devel for inclusion in the unstable tree. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel