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

Re: [Xen-users] Mapping GPIO ports to domU



Hi Ian,

      Thank you. Yeah I am talking about MMIO registers & x86 I/O ports. I am new to xen, can you tell me bit clearly or if there is any document link which explain more about iomem and ioport configurations. Basically MMIO GPIO port is accessible at physical address 0xfed80000. I want to map this address directly to domU, I am okay even page exposes other registers as of now. Thanks in advance. 

On Tue, Apr 23, 2013 at 5:25 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
On Tue, 2013-04-23 at 12:30 +0100, Srinivas Ch wrote:
> Hello,
>
>
>       I have physical address of GPIO port, I want to map that
> physical address to domU and make domU to access those ports. These
> GPIO ports can be accessed through I/O port as well. What is the best
> way to achieve this other than shared driver model. Since these GPIO
> ports are on-chip I can't even make them as pass through. So what is
> the possible solution?

It's not clear to me if you are talking about MMIO registers or X86 I/O
address space ports.

With xl you can use "ioports = [...]" and "iomem = [...]" in your domain
configuration. IIRC xend only supported ioports.

iomem only works at the page granularity though, so if you use that you
will be exposing the entire page containing the ports, which may be a
problem depending on what shares that page. If you can use the I/O
address space to access these registers that would probably be
preferable for that reason.


Ian.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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