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

Re: [Xen-devel] Problems with xen 4.1.x + passthrough + pvonhvm



Stefano Stabellini <stefano.stabellini <at> eu.citrix.com> writes:

> Are you using xm or xl?
I'm using xm. 

> Why do you say that CONFIG_XEN_PCIDEV_BACKEND is not working for you?
modprobe pciback says fatal error.
xen-pciback.hide does not hide pci device.


 
> Try assigning something that is not a graphic card, do you see the
> device if you execute lspci?
Nope. I get a error Error: Timed out waiting for device model action

> Is it your primary graphic card?
Yes it was a primary card.Now I inserted another card [quadro 570] 
which is acting as primary card.

Now, i'm able to passthrough c2050 card. But on assigning them I get a msg 
Error: Timed out waiting for device model action

log:

[2012-05-04 12:51:09 2006] DEBUG (XendDomainInfo:2498)
XendDomainInfo.constructDomain
[2012-05-04 12:51:09 2006] DEBUG (balloon:187) Balloon: 1048700 KiB free; 
need 16384; done.
[2012-05-04 12:51:09 2006] DEBUG (XendDomain:476) Adding Domain: 2
[2012-05-04 12:51:09 2006] DEBUG (XendDomainInfo:2836)
XendDomainInfo.initDomain: 2 256
[2012-05-04 12:51:09 2006] DEBUG (image:337) Stored a VNC
password for vfb access
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: boot, val: c
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: fda, val: None
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: fdb, val: None
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: soundhw, val: None
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: localtime, val: 0
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: serial, val: ['pty']
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: std-vga, val: 0
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: isa, val: 0
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: acpi, val: 1
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: usb, val: 0
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: usbdevice, val: None
[2012-05-04 12:51:09 2006] DEBUG (image:891) args: gfx_passthru, val: None
[2012-05-04 12:51:09 2006] INFO (image:822) 
Need to create platform device.[domid:2]
[2012-05-04 12:51:09 2006] DEBUG (XendDomainInfo:2863)
_initDomain:shadow_memory=0x0, 
memory_static_max=0x20000000, memory_static_min=0x0.
[2012-05-04 12:51:09 2006] INFO (image:182) buildDomain os=hvm dom=2 vcpus=1
[2012-05-04 12:51:09 2006] DEBUG (image:949) domid          = 2
[2012-05-04 12:51:09 2006] DEBUG (image:950) image          =
/usr/lib/xen/boot/hvmloader
[2012-05-04 12:51:09 2006] DEBUG (image:951) store_evtchn   = 2
[2012-05-04 12:51:09 2006] DEBUG (image:952) memsize        = 512
[2012-05-04 12:51:09 2006] DEBUG (image:953) target         = 512
[2012-05-04 12:51:09 2006] DEBUG (image:954) vcpus          = 1
[2012-05-04 12:51:09 2006] DEBUG (image:955) vcpu_avail     = 1
[2012-05-04 12:51:09 2006] DEBUG (image:956) acpi           = 1
[2012-05-04 12:51:09 2006] DEBUG (image:957) apic           = 1
[2012-05-04 12:51:09 2006] INFO (XendDomainInfo:2357) createDevice: vfb :
{'vncpasswd': 'XXXXXXXX', 'vncunused': 1, 'other_config': {'vncunused': 1,
'vncpasswd': 'XXXXXXXX', 'vnc': '1'}, 'vnc': '1', 'uuid':
'686bf850-485f-2089-4207-fe4cce4a55d4'}
[2012-05-04 12:51:09 2006] DEBUG (DevController:95) DevController: writing
{'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/2/0'}
to /local/domain/2/device/vfb/0.
[2012-05-04 12:51:09 2006] DEBUG (DevController:97) DevController: writing
{'vncunused': '1', 'domain': 'xen10_04', 'frontend':
'/local/domain/2/device/vfb/0', 'uuid': '686bf850-485f-2089-4207-fe4cce4a55d4',
'frontend-id': '2', 'vncpasswd': 'XXXXXXXX', 'state': '1', 
'online': '1', 'vnc':'1'} to /local/domain/0/backend/vfb/2/0.
[2012-05-04 12:51:09 2006] INFO (XendDomainInfo:2357) createDevice: vbd :
{'uuid': '7e43a0f7-9c76-d2c5-86eb-66e599b19b7e', 'bootable': 1, 'driver':
'ioemu', 'dev': 'ioemu:xvda', 'uname': 'file:/home/gpu/XenGuest.img', 
'mode': 'w'}
[2012-05-04 12:51:09 2006] DEBUG (DevController:95) DevController: writing
{'backend-id': '0', 'virtual-device': '51712', 'device-type': 'disk', 'state':
'1', 'backend': '/local/domain/0/backend/vbd/2/51712'} to
/local/domain/2/device/vbd/51712.
[2012-05-04 12:51:09 2006] DEBUG (DevController:97) DevController: writing
{'domain': 'xen10_04', 'frontend': '/local/domain/2/device/vbd/51712', 'uuid':
'7e43a0f7-9c76-d2c5-86eb-66e599b19b7e', 'bootable': '1', 'dev': 'xvda', 'state':
'1', 'params': '/home/gpu/XenGuest.img', 'mode': 'w', 'online': '1',
'frontend-id': '2', 'type': 'file'} to /local/domain/0/backend/vbd/2/51712.
[2012-05-04 12:51:09 2006] INFO (XendDomainInfo:2357) createDevice: pci :
{'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '42:00.0', 'bus': '0x42',
'vdevfn': '0x100', 'func': '0x0', 'uuid':
'92c19814-33ea-4094-a391-e958c5ff8b39'}, {'slot': '0x00', 'domain': '0x0000',
'key': '42:00.1', 'bus': '0x42', 'vdevfn': '0x100', 'func': '0x1', 'uuid':
'7ab51e57-6c63-14fb-ea42-eee3c6aaedac'}], 'uuid':
'503788f2-e43d-1869-ad44-347a7a735bc6'}
[2012-05-04 12:51:12 2006] INFO (image:418) spawning device models:
/usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '2', '-domain-name',
'xen10_04', '-videoram', '4', '-vnc', '127.0.0.1:0,password', '-vncunused',
'-vcpus', '1', '-vcpu_avail', '0x1', '-boot', 'c', '-serial', 'pty', '-acpi',
'-net', 'none', '-M', 'xenfv']
[2012-05-04 12:51:12 2006] INFO (image:467) device model pid: 2849
[2012-05-04 12:51:12 2006] DEBUG (XendDomainInfo:893)
XendDomainInfo.pci_device_configure: ['pci', ['dev', ['slot', '0x00'],
['domain', '0x0000'], ['key', '42:00.0'], ['bus', '0x42'], ['vdevfn', '0x100'],
['func', '0x0'], ['uuid', '92c19814-33ea-4094-a391-e958c5ff8b39']], ['state',
'Initialising'], ['sub_state', 'Booting']]
[2012-05-04 12:51:12 2006] INFO (image:590) waiting for sentinel_fifo
[2012-05-04 12:51:12 2006] DEBUG (XendDomainInfo:779)
XendDomainInfo.hvm_pci_device_insert: {'devs': [{'slot': '0x00', 'domain':
'0x0000', 'key': '42:00.0', 'bus': '0x42', 'vdevfn': '0x100', 'func': '0x0',
'uuid': '92c19814-33ea-4094-a391-e958c5ff8b39'}], 'states': ['Initialising']}
[2012-05-04 12:51:12 2006] DEBUG (XendDomainInfo:790)
XendDomainInfo.hvm_pci_device_insert_dev: {'slot': '0x00', 'domain': '0x0000',
'key': '42:00.0', 'bus': '0x42', 'vdevfn': '0x100', 'func': '0x0', 'uuid':
'92c19814-33ea-4094-a391-e958c5ff8b39'}
[2012-05-04 12:51:12 2006] DEBUG (XendDomainInfo:811)
XendDomainInfo.hvm_pci_device_insert_dev:
0000:42:00.0@100,msitranslate=1,power_mgmt=0
[2012-05-04 12:51:12 2006] DEBUG (XendDomainInfo:815) pci: assign device
0000:42:00.0@100,msitranslate=1,power_mgmt=0
[2012-05-04 12:51:12 2006] DEBUG (image:508) signalDeviceModel: orig_state is
None, retrying
[2012-05-04 12:51:22 2006] ERROR (XendDomainInfo:2922)
XendDomainInfo.initDomain: exception occurred
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
2914, in _initDomain
    self._createDevices()
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
2395, in _createDevices
    self.pci_device_configure_boot()
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
627, in pci_device_configure_boot
    self.pci_device_configure(dev_sxp, first_dev = first)
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
921, in pci_device_configure
    vdevfn = self.hvm_pci_device_insert(dev_config)
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
786, in hvm_pci_device_insert
    return self.hvm_pci_device_insert_dev(new_dev)
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
816, in hvm_pci_device_insert_dev
    self.image.signalDeviceModel('pci-ins', 'pci-inserted', bdf_str)
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/image.py", line 533, in
signalDeviceModel
    raise VmError('Timed out waiting for device model action')
VmError: Timed out waiting for device model action
[2012-05-04 12:51:22 2006] ERROR (XendDomainInfo:488) VM start failed
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
474, in start
    XendTask.log_progress(31, 60, self._initDomain)
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendTask.py", line 209,
in log_progress
    retval = func(*args, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
2925, in _initDomain
    raise exn
VmError: Timed out waiting for device model action
[2012-05-04 12:51:22 2006] DEBUG (XendDomainInfo:3071) XendDomainInfo.destroy:
domid=2
[2012-05-04 12:51:22 2006] DEBUG (XendDomainInfo:2401) Destroying device model
[2012-05-04 12:51:22 2006] INFO (image:615) xen10_04 device model terminated
[2012-05-04 12:51:22 2006] DEBUG (XendDomainInfo:2408) Releasing devices
[2012-05-04 12:51:22 2006] DEBUG (XendDomainInfo:2414) Removing vbd/51712
[2012-05-04 12:51:23 2006] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51712
[2012-05-04 12:51:23 2006] DEBUG (XendDomainInfo:2414) Removing vfb/0
[2012-05-04 12:51:23 2006] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2012-05-04 12:51:23 2006] DEBUG (XendDomainInfo:2406) No device model
[2012-05-04 12:51:23 2006] DEBUG (XendDomainInfo:2408) Releasing devices
[2012-05-04 12:51:23 2006] DEBUG (XendDomainInfo:2414) Removing vbd/51712
[2012-05-04 12:51:23 2006] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51712
[2012-05-04 12:51:23 2006] ERROR (XendDomainInfo:108) Domain construction failed
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
106, in create
    vm.start()
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
474, in start
    XendTask.log_progress(31, 60, self._initDomain)
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendTask.py", line 209,
in log_progress
    retval = func(*args, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/xen/xend/XendDomainInfo.py", line
2925, in _initDomain
    raise exn
VmError: Timed out waiting for device model action






_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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