Skip to contentSkip to conversation

VM_FOREIGN could be set into direct_remap_pfn_range()?

DISCUSSION Wei Kong 2 participants 2 messages Nov 10, 2009

lore
Share & tools
lore

Wei Kong

author
#0 lore raw

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

#1 lore raw
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 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