Wei Kong
2009-Nov-10 04:48 UTC
[Xen-devel] 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 Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jan Beulich
2009-Nov-10 10:44 UTC
Re: [Xen-devel] VM_FOREIGN could be set into direct_remap_pfn_range()?
>>> Wei Kong <weikong.cn@gmail.com> 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 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().Yes - VM_FOREIGN implies that vma->vm_private_data points to an array of struct page *, providing the pages for the vma. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel