From: Wei Kong Subject: VM_FOREIGN could be set into direct_remap_pfn_range()? Date: Tue, 10 Nov 2009 12:48:39 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2048200300==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2048200300== Content-Type: multipart/alternative; boundary=0016e6d63fff1b4c8f0477fd0617 --0016e6d63fff1b4c8f0477fd0617 Content-Type: text/plain; charset=UTF-8 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 --0016e6d63fff1b4c8f0477fd0617 Content-Type: text/html; charset=UTF-8 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
--0016e6d63fff1b4c8f0477fd0617-- --===============2048200300== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2048200300==--