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

Re: [Xen-devel] Device pass through on XEN on ARM

On Thu, 2014-05-01 at 15:44 +0100, Julien Grall wrote:
> On 04/29/2014 12:35 PM, Khandelwal, Shubham wrote:
> > Hello,
> Hello,
> I've dropped the xen-arm list as it has been archived few months ago.
> > I would like to understand how is pass through achieved on XEN on ARM
> > for devices which do not have a PCI bus controller, like for example
> > embedded devices. Any pointers in this direction will be appreciated.
> For the moment, Xen 4.5 doesn't support device passthrough.

People who are using 4.4 have been hardcoding mmio passthrough for
specific platforms though, essentially by hacking the hypervisor code to
do whatever magic was needed.

The method is somewhat similar to the platform specific mappings
callback which allows MMIO regions which are undescribed in the DT to be
passed to dom0. xgene_storm_specific_mapping() is probably the best

Essentially you just need to arrange for map_mmio_region() and
gic_route_irq_to_guest() to be called for the appropriate regions when
constructing the guest domain. Doing this statically for e.g. dom1 is
pretty trivial, just hack some calls in somewhere on the domain create
path with he appropriate checks.

Allowing this to happen for any domain (useful if you want to reboot the
guest domain) is a bit trickier, I'd probably be inclined to create a
custom domctl and arrange for it to be called during domain build for
the appropriate domain.

Obviously this is all very hacky and as Julien says there are various
things in the pipeline for 4.5 which will allow this to be done


Xen-devel mailing list



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