Re: Problems mapping an vm_object to a process memory space

2009-03-13 Thread Pekka Nikander
Hi Alexej, The actual mapping code is now at http://pastebin.com/m56a949a5 The objects in question are allocated through vm_pager_allocate with OBJT_SWAP. Note that I'm not sure when OBJ_ONEMAPPING clearing actually helps and when not -- I've more sprinkled it around the code in the ho

Re: Problems mapping an vm_object to a process memory space

2009-03-13 Thread Alexej Sokolov
hi , I had a problem with remapping too. Could I see your code? here is my code, that some times on AMD64 runs wrong : http://pastebin.com/m78da0b37 And now I solved the problem with remapping by using /dev/mem device. It has mmap syscal. And it seems to be working without problem. Alexej < 2009

Problems mapping an vm_object to a process memory space

2009-03-13 Thread Pekka Nikander
As a part of a research project, I'm trying to build publish/subscribe shared memory semantics where the idea is to first map an vm_object as read/write to a publisher's memory space, and then a COW shadow of that later to the subscriber processes' memory space. I've got to the point where