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

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

Hi Ian,

    I tried the approach you suggested but I was not able to read the correct values in guest, here is the configuration used 

name = "elf"
uuid = "67a7ee66-3de2-aaf4-08f9-4e2e1c9ef934"
maxmem = 512
memory = 512
ioports= ["cd6-cd7"]
vcpus = 1
builder = "hvm"
boot = "c"
pae = 1
acpi = 1
apic = 1
hap = 0
viridian = 0
localtime = 0
hpet = 0
sdl = 0
vnc = 1
vncunused = 1
keymap = "en-us"
disk = [ "file:/home/lab/workspace/xen_demo/src/demo_threadx/img/elf.img,hda,w" ]
parallel = "none"
serial = "pty"
soundhw = "es1370"

Is this the correct way to create guest to have host ioports on guest? When I run inb on 0xcd6 in guest I see value 0xff, which is invalid, on guest I am able to read it as 0x2d.  Let me know if I have to make any changes on host side. Thanks in advance.

On Wed, Apr 24, 2013 at 11:07 AM, Srinivas Ch <jobseeker.naukri@xxxxxxxxx> wrote:
Hi Ian,

     Thank you very much. The GPIO ports I am referring they belong to  dual address space; one is IO address and the other is memory address space. That is why I am asking for both options. I will try both options whichever works first for me will use that approach.

On Tue, Apr 23, 2013 at 8:41 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
On Tue, 2013-04-23 at 15:03 +0100, Srinivas Ch wrote:
> Hi Ian,
>       Thank you. Yeah I am talking about MMIO registers & x86 I/O
> ports.

MMIO registers & x86 I/O ports are two separate things. It sounds like
you are doing MMIO.

>  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.

xl comes with manpages which describe these options and you can find
them either in tree or linked from the wiki.

>  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.

Then I think the iomem option should do what you need.


Xen-users mailing list



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