industrialNETworXnetx

David Müller

David Müller

MPL AG

| 12.08.2011 | 10:59 | 0 replies

netX DPM access from a Xen DomU

Hello

I'm trying to access the DPM area of a netX based PCI card using the cifX Linux driver (uio-netx) in a para-virtualized Xen DomU (both Dom0 + DomU are based on Debian 6.0.2 Squeeze).

The PCI passthru of the netX card from Dom0 to DomU seems to be ok as the uio-netx driver is successfully loaded and the physical address and length of the DPM area are available under "/sys/class/uio/uio0/maps/map0/".

The problem starts if the DPM area is mapped into the address space of the application using "mmap()".
Although the "mmap()" function does not report an error, the Xen Hypervisor prints out a waring about an "Non-privileged attempt to map I/O space". So it is not really surprising that the first access to the DPM area results in a crash.

Has anybody already been able to successfully use the uio-netx driver in this (or a similar) scenario?
Or any idea what is going wrong?

Thanks in advance

David

Login