|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Query] Assigning PCI ranges to dom0 and domU
On Fri, 2014-08-01 at 15:01 +0100, Stefano Stabellini wrote:
> On Fri, 1 Aug 2014, manish jaggi wrote:
> > 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.
>
> Firstly you just need to get PCI up and running in Dom0, and you can do
> that by passing this device tree node to Dom0 and remapping the
> appropriate memory ranges. See for example:
>
> xen/arch/arm/platforms/xgene-storm.c:xgene_storm_specific_mapping
NB I'd really love for someone to revisit this general problem and
properly handle ranges,dma-ranges,interrupts etc properties on
device_type="pci" DT nodes so that they Just Work instead of using a
platform hook for each individual one.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |