add kmem and vmem mmap support