I'm trying to simulate some hardware with a driver which maps a region of kernel memory (allocated with kmalloc) to user space.
The user is called mmap which gives him direct access to some register space. This works well on a real Linux box but when I try to simulate the register region with kernel memory, the writes from user space do not go into the kmalloc'ed region. Here are the pointers: 0x271f0000 is returned from kmalloc 0x1f1f0000 is the above after a virt_to_phys 0x404e9000 is the user's virtual address I use remap_page_range with: 0x404e9000, 0x1f1f0000, 65536, 0x39 The user writes to some offset in this region (using his virtual address). Reads back the value, all is good. The kernel tries to read the value using the virtual address (offset from 0x271f0000) and gets back zeros. I've also tried look at the phys addr (offset from 0x1f1f0000) and that too is zeros. Any help appreciated. -Jim. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel