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

[Xen-devel] [Query] Assigning PCI ranges to dom0 and domU



Hi Stefano,

I am working on accessing PCI nodes in the doms on ARM (cavium). If there is the below device tree nodeÂ
pcie1@0x849000000000 {
ÂÂÂ ÂÂÂÂÂÂÂ compatible = "cavium,thunder-pcie";
ÂÂÂ ÂÂÂ device_type = "pci";
ÂÂÂ ÂÂÂ msi-parent = <&its>;
ÂÂÂ ÂÂÂ bus-range = <0 255>;
ÂÂÂ ÂÂÂ #size-cells = <2>;
ÂÂÂ ÂÂÂ #address-cells = <3>;
ÂÂÂÂÂÂÂ ÂÂÂ reg = <0x8490 0x00000000 0 0x40000000>;Â /* Configuration space */
ÂÂÂ ÂÂÂ ranges = <0x03000000 0x8310 0x00000000 0x8310 0x00000000 0x00 0x10000000>, /* mem ranges */
ÂÂÂ ÂÂÂ ÂÂÂ <0x03000000 0x8100 0x00000000 0x8100 0x00000000 0x80 0x00000000>;
ÂÂÂÂÂÂÂ };
ÂÂÂ

How to assign ranges to guest dom0 / domU. Is there a well defined api in xen OR I have to parse the device tree ranges and do a 1:1 mapping using map_mmio_regions.

-Regards
Manish
_______________________________________________
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®.