VM_FOREIGN could be set into direct_remap_pfn_range()?
Now we encounter a EFAULT in get_user_pages() when xm save on old ocfs2-1.4.1 fs.
Due to in xc_domain_save got VM_IO when mmap and IOCTL_PRIVCMD_MMAPBATCH, but not VM_FOREIGN,
but old ocfs2-1.4.1 has get_user_pages() when do write.
I don't know is there any side effect if I set VM_FOREIGN for vm_flags in direct_remap_pfn_range().
--thank you
Kong
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Wei Kong <[email protected]> 10.11.09 05:48 >>>
Now we encounter a EFAULT in
get_user_pages()when xm save on old ocfs2-1.4.1 fs.
Due to inxc_domain_savegotVM_IOwhen mmap andIOCTL_PRIVCMD_MMAPBATCH, but notVM_FOREIGN,
but old ocfs2-1.4.1 hasget_user_pages()when do write.I don't know is there any side effect if I set
VM_FOREIGNforvm_flagsindirect_remap_pfn_range().
Yes - VM_FOREIGN implies that vma->vm_private_data points to an array of struct page *, providing the pages for the vma.
Jan