[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Xen-users] PCI passthrough problems after legacy update of xen 4.1
Ok, I have some progress. It tried also with the device I had always managed to get through, the radeon 7790 gpu. This worked equally well with both versions of pciif.py. However, it turned out that with the changed version, if I pass the gpu first in the pci = [ ... ] list, the other devices also gets through. This was not the case with the original version of pciif.py. If (and only if) i order the passthrough list in the config file so that it says pci = [ '41:00.0', '41:00.1', '04:00.0' ] pci = [ '41:00.0', '41:00.1', '04:00.0' ] xend.log: [2013-05-02 22:54:38 7863] DEBUG (pciif:169) Reconfiguring PCI device 0000:41:00.0. [2013-05-02 22:54:38 7863] INFO (pciquirk:92) NO quirks found for PCI device [1002:665c:1458:2269] [2013-05-02 22:54:38 7863] DEBUG (pciquirk:135) Permissive mode NOT enabled for PCI device [1002:665c:1458:2269] [2013-05-02 22:54:38 7863] DEBUG (pciif:320) pci: enabling ioport 0xe000/0x100 [2013-05-02 22:54:38 7863] DEBUG (pciif:334) pci: enabling iomem 0xa0000000/0x10000000 pfn 0xa0000/0x10000 [2013-05-02 22:54:38 7863] DEBUG (pciif:334) pci: enabling iomem 0x9f800000/0x800000 pfn 0x9f800/0x800 [2013-05-02 22:54:38 7863] DEBUG (pciif:334) pci: enabling iomem 0xbffc0000/0x40000 pfn 0xbffc0/0x40 [2013-05-02 22:54:38 7863] DEBUG (pciif:334) pci: enabling iomem 0xbffa0000/0x20000 pfn 0xbffa0/0x20 [2013-05-02 22:54:38 7863] DEBUG (pciif:351) pci: enabling irq 16 [2013-05-02 22:54:38 7863] DEBUG (XendDomainInfo:893) XendDomainInfo.pci_device_configure: ['pci', ['dev', ['slot', '0x00'], ['domain', '0x0000'], ['key', '41:00.1'], ['bus', '0x41'], ['vdevfn', '0x100'], ['func', '0x1'], ['uuid', 'e94457db-ac50-04a3-216f-9fb6c8aab1f1']], ['state', 'Initialising'], ['sub_state', 'Booting']] [2013-05-02 22:54:38 7863] DEBUG (XendDomainInfo:779) XendDomainInfo.hvm_pci_device_insert: {'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '41:00.1', 'bus': '0x41', 'vdevfn': '0x100', 'func': '0x1', 'uuid': 'e94457db-ac50-04a3-216f-9fb6c8aab1f1'}], 'states': ['Initialising']} [2013-05-02 22:54:38 7863] DEBUG (XendDomainInfo:790) XendDomainInfo.hvm_pci_device_insert_dev: {'slot': '0x00', 'domain': '0x0000', 'key': '41:00.1', 'bus': '0x41', 'vdevfn': '0x100', 'func': '0x1', 'uuid': 'e94457db-ac50-04a3-216f-9fb6c8aab1f1'} [2013-05-02 22:54:38 7863] DEBUG (XendDomainInfo:811) XendDomainInfo.hvm_pci_device_insert_dev: 0000:41:00.1@100,msitranslate=1,power_mgmt=1 [2013-05-02 22:54:38 7863] DEBUG (XendDomainInfo:815) pci: assign device 0000:41:00.1@100,msitranslate=1,power_mgmt=1 [2013-05-02 22:54:38 7863] INFO (image:538) signalDeviceModel:restore dm state to running [2013-05-02 22:54:38 7863] DEBUG (pciif:169) Reconfiguring PCI device 0000:41:00.1. [2013-05-02 22:54:39 7863] INFO (pciquirk:92) NO quirks found for PCI device [1002:0002:1458:0002] [2013-05-02 22:54:39 7863] DEBUG (pciquirk:135) Permissive mode NOT enabled for PCI device [1002:0002:1458:0002] [2013-05-02 22:54:39 7863] DEBUG (pciif:334) pci: enabling iomem 0xbff9c000/0x4000 pfn 0xbff9c/0x4 [2013-05-02 22:54:39 7863] DEBUG (pciif:351) pci: enabling irq 17 [2013-05-02 22:54:39 7863] DEBUG (XendDomainInfo:893) XendDomainInfo.pci_device_configure: ['pci', ['dev', ['slot', '0x00'], ['domain', '0x0000'], ['key', '04:00.0'], ['bus', '0x04'], ['vdevfn', '0x100'], ['func', '0x0'], ['uuid', 'fe6ebcc1-2dcc-7337-c98e-88250cb78896']], ['state', 'Initialising'], ['sub_state', 'Booting']] [2013-05-02 22:54:39 7863] DEBUG (XendDomainInfo:779) XendDomainInfo.hvm_pci_device_insert: {'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '04:00.0', 'bus': '0x04', 'vdevfn': '0x100', 'func': '0x0', 'uuid': 'fe6ebcc1-2dcc-7337-c98e-88250cb78896'}], 'states': ['Initialising']} [2013-05-02 22:54:39 7863] DEBUG (XendDomainInfo:790) XendDomainInfo.hvm_pci_device_insert_dev: {'slot': '0x00', 'domain': '0x0000', 'key': '04:00.0', 'bus': '0x04', 'vdevfn': '0x100', 'func': '0x0', 'uuid': 'fe6ebcc1-2dcc-7337-c98e-88250cb78896'} [2013-05-02 22:54:39 7863] DEBUG (XendDomainInfo:811) XendDomainInfo.hvm_pci_device_insert_dev: 0000:04:00.0@100,msitranslate=1,power_mgmt=1 [2013-05-02 22:54:39 7863] DEBUG (XendDomainInfo:815) pci: assign device 0000:04:00.0@100,msitranslate=1,power_mgmt=1 [2013-05-02 22:54:39 7863] INFO (image:538) signalDeviceModel:restore dm state to running [2013-05-02 22:54:39 7863] DEBUG (pciif:169) Reconfiguring PCI device 0000:04:00.0. [2013-05-02 22:54:39 7863] INFO (pciquirk:92) NO quirks found for PCI device [104c:8241:0000:0000] [2013-05-02 22:54:39 7863] DEBUG (pciquirk:135) Permissive mode NOT enabled for PCI device [104c:8241:0000:0000] [2013-05-02 22:54:39 7863] DEBUG (pciif:334) pci: enabling iomem 0xdfef0000/0x10000 pfn 0xdfef0/0x10 [2013-05-02 22:54:39 7863] DEBUG (pciif:334) pci: enabling iomem 0xdfeee000/0x2000 pfn 0xdfeee/0x2 [2013-05-02 22:54:39 7863] DEBUG (pciif:351) pci: enabling irq 19 ... all OK and running. The gpu does not initialize unless after reboot of dom0, but that issue was since before. pci = [ '41:00.0', '41:00.1', '04:00.0' ] (as before) OLD pciif.py (if not ... and dev.irq) xend.log: [2013-05-02 22:59:13 9301] DEBUG (XendDomainInfo:811) XendDomainInfo.hvm_pci_device_insert_dev: 0000:41:00.0@100,msitranslate=1,power_mgmt=1 [2013-05-02 22:59:13 9301] DEBUG (XendDomainInfo:815) pci: assign device 0000:41:00.0@100,msitranslate=1,power_mgmt=1 [2013-05-02 22:59:13 9301] DEBUG (image:508) signalDeviceModel: orig_state is None, retrying [2013-05-02 22:59:13 9301] DEBUG (image:508) signalDeviceModel: orig_state is None, retrying [2013-05-02 22:59:14 9301] INFO (image:538) signalDeviceModel:restore dm state to running [2013-05-02 22:59:14 9301] INFO (pciquirk:92) NO quirks found for PCI device [1002:665c:1458:2269] [2013-05-02 22:59:14 9301] DEBUG (pciquirk:135) Permissive mode NOT enabled for PCI device [1002:665c:1458:2269] [2013-05-02 22:59:14 9301] DEBUG (pciif:320) pci: enabling ioport 0xe000/0x100 [2013-05-02 22:59:14 9301] DEBUG (pciif:334) pci: enabling iomem 0xa0000000/0x10000000 pfn 0xa0000/0x10000 [2013-05-02 22:59:14 9301] DEBUG (pciif:334) pci: enabling iomem 0x9f800000/0x800000 pfn 0x9f800/0x800 [2013-05-02 22:59:14 9301] DEBUG (pciif:334) pci: enabling iomem 0xbffc0000/0x40000 pfn 0xbffc0/0x40 [2013-05-02 22:59:14 9301] DEBUG (pciif:334) pci: enabling iomem 0xbffa0000/0x20000 pfn 0xbffa0/0x20 [2013-05-02 22:59:14 9301] DEBUG (pciif:351) pci: enabling irq 16 [2013-05-02 22:59:14 9301] INFO (pciquirk:92) NO quirks found for PCI device [1002:0002:1458:0002] [2013-05-02 22:59:14 9301] DEBUG (pciquirk:135) Permissive mode NOT enabled for PCI device [1002:0002:1458:0002] [2013-05-02 22:59:14 9301] DEBUG (pciif:334) pci: enabling iomem 0xbff9c000/0x4000 pfn 0xbff9c/0x4 [2013-05-02 22:59:14 9301] DEBUG (pciif:351) pci: enabling irq 17 [2013-05-02 22:59:14 9301] ERROR (XendDomainInfo:2927) XendDomainInfo.initDomain: exception occurred Traceback (most recent call last): File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2914, in _initDomain self._createDevices() File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2395, in _createDevices self.pci_device_configure_boot() File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 627, in pci_device_configure_boot self.pci_device_configure(dev_sxp, first_dev = first) File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 970, in pci_device_configure devid = self._createDevice('pci', existing_pci_conf) File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2326, in _createDevice return self.getDeviceController(deviceClass).createDevice(devConfig) File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/server/DevController.py", line 67, in createDevice self.setupDevice(config) File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/server/pciif.py", line 453, in setupDevice self.setupOneDevice(d) File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/server/pciif.py", line 353, in setupOneDevice allow_access = True) Error: (22, 'Invalid argument') [2013-05-02 22:59:14 9301] ERROR (XendDomainInfo:488) VM start failed Traceback (most recent call last): File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 474, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2930, in _initDomain raise VmError(str(exn)) VmError: (22, 'Invalid argument') [2013-05-02 22:59:14 9301] DEBUG (XendDomainInfo:3071) XendDomainInfo.destroy: domid=39 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2401) Destroying device model [2013-05-02 22:59:17 9301] INFO (image:615) w8 device model terminated [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2408) Releasing devices [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2414) Removing vif/0 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2414) Removing vbd/768 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2414) Removing vbd/832 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/832 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2414) Removing vbd/5632 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/5632 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2414) Removing vfb/0 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2406) No device model [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2408) Releasing devices [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2414) Removing vif/0 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2414) Removing vbd/768 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2414) Removing vbd/832 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/832 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:2414) Removing vbd/5632 [2013-05-02 22:59:17 9301] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/5632 [2013-05-02 22:59:17 9301] ERROR (XendDomainInfo:108) Domain construction failed Traceback (most recent call last): File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 106, in create vm.start() File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 474, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2930, in _initDomain raise VmError(str(exn)) VmError: (22, 'Invalid argument') (end of file) Any other ordering of the pci = [ ... ] list fails as before, but in different ways as shown in my earlier test. /Andreas 2013/5/2 Andreas Falck <falck.andreas.lists@xxxxxxxxx>
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |