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

[Xen-users] RE: pci-attach - HOWTO



Hi,
Nothing works yet.

In the /var/log/xen/xend.log I saw:
----------------------------------------
2010-04-25 19:23:09 7424] DEBUG (XendDomainInfo:788) 
XendDomainInfo.pci_device_configure: ['pci', ['dev', ['domain', '0x0000'], 
['bus', '0
x03'], ['slot', '0x00'], ['func', '0x1'], ['vslot', '0x20']], ['state', 
'Initialising']]
[2010-04-25 19:23:09 7424] DEBUG (XendDomainInfo:613) 
XendDomainInfo.hvm_pci_device_create: {'devs': [{'slot': '0x00', 'domain': 
'0x0000',
'uuid': '19c550ea-755a-0665-951e-a832a6453cd8', 'vslot': '0x20', 'bus': '0x03', 
'func': '0x1'}], 'states': ['Initialising']}
[2010-04-25 19:23:10 7424] INFO (image:476) signalDeviceModel:restore dm state 
to running
[2010-04-25 19:23:10 7424] DEBUG (XendDomainInfo:738) 
XendDomainInfo.device_create: ['pci', ['dev', ['domain', '0x0000'], ['bus', 
'0x03'],
['slot', '0x00'], ['func', '0x1'], ['vslot', '0x5']], ['state', 'Initialising']]
[2010-04-25 19:23:10 7424] DEBUG (XendDomainInfo:742) 
XendDomainInfo.device_create: {'devs': [{'slot': '0x00', 'domain': '0x0000', 
'uuid':
'fe28d300-b0ab-a28d-6c4c-de1c66396f24', 'vslot': '0x5', 'bus': '0x03', 'func': 
'0x1'}], 'uuid': 'd0381e79-bcc1-0e28-d62c-acb82df9ed26'}
[2010-04-25 19:23:10 7424] INFO (pciquirk:90) NO quirks found for PCI device 
[15b3:673d:15b3:61b0]
[2010-04-25 19:23:10 7424] DEBUG (pciquirk:132) Permissive mode NOT enabled for 
PCI device [15b3:673d:15b3:61b0]
[2010-04-25 19:23:10 7424] DEBUG (pciif:349) pci: enabling iomem 
0xf4000000/0x800000 pfn 0xf4000/0x800
[2010-04-25 19:23:10 7424] DEBUG (pciif:363) pci-msix: remove permission for 
0xf4002000/0x1000 0xf4002/0x1
[2010-04-25 19:23:10 7424] DEBUG (pciif:363) pci-msix: remove permission for 
0xf4003000/0x1000 0xf4003/0x1
[2010-04-25 19:23:10 7424] DEBUG (pciif:462) XendDomainInfo.handleAerStateWatch
[2010-04-25 19:23:10 7424] DEBUG (pciif:458) pci: register aer watch 
/local/domain/0/backend/pci/2/0/aerState
[2010-04-25 19:23:10 7424] DEBUG (DevController:95) DevController: writing 
{'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/ba
ckend/pci/2/0'} to /local/domain/2/device/pci/0.
[2010-04-25 19:23:10 7424] DEBUG (DevController:97) DevController: writing 
{'domain': 'hvm2', 'frontend': '/local/domain/2/device/pci/0', '
uuid': 'd0381e79-bcc1-0e28-d62c-acb82df9ed26', 'power_mgmt': '0', 
'msitranslate': '1', 'dev-0': '0000:03:00.1', 'state': '1', 'vslots': '0x
5;', 'vslot-0': '00', 'online': '1', 'frontend-id': '2', 'uuid-0': 
'fe28d300-b0ab-a28d-6c4c-de1c66396f24', 'num_devs': '1'} to /local/domai
n/0/backend/pci/2/0.
[2010-04-25 19:23:10 7424] DEBUG (DevController:144) Waiting for 0.




In the /var/log/xen/qemu-dm-hvm2.log
--------------------------------------

track_dirty_vram(f0000000, 1c2) failed (-1, 22)
track_dirty_vram(f0000000, 1c2) failed (-1, 22)
track_dirty_vram(f0000000, 1c2) failed (-1, 22)
track_dirty_vram(f0000000, 1c2) failed (-1, 22)
track_dirty_vram(f0000000, 1c2) failed (-1, 22)
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 03:00.1 ...
pt_dev_is_virtfn: 0000:03:00.1 is a SR-IOV Virtual Function
pt_register_regions: IO region registered (size=0x00800000 base_addr=0xf400000c)
pt_msix_init: get MSI-X table bar base f4000000
pt_msix_init: mapping physical MSI-X table to 99ee1000
register_real_device: Real physical device 03:00.1 registered successfuly!
IRQ type = INTx
generate a sci for PHP.
gpe_en_write: addr=0x1f6c, val=0x0.
deassert due to disable GPE bit.
ACPI PCI hotplug: read addr=0x10c0, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x5.
gpe_sts_write: addr=0x1f68, val=0x8.
gpe_en_write: addr=0x1f6c, val=0x8.
track_dirty_vram(f0000000, 1c2) failed (-1, 22)
track_dirty_vram(f0000000, 1c2) failed (-1, 22)
:                                                             

-----Original Message-----
From: Erez Shitrit 
Sent: Thursday, April 22, 2010 6:29 PM
To: 'xen-users@xxxxxxxxxxxxxxxxxxx'
Subject: pci-attach - HOWTO

Hi,
I tried to attach passrough io device to domU, the command (ended successfully 
in dom0), but when I entered the domU and typed the "lspci" command I didn't 
see the new device, although the dom0 removed it from the 
"pci-list-assignable-devices".
 
When I tried to detach it from the domU, the detach command returned with 
timeout error.
 
What did I miss? perhaps I need to do something in the domU (the hotplug 
feature? do I need to enter it manually? if yes How?)
 
Thanks in advanced, Erez

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

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