WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] VM_FOREIGN could be set into direct_remap_pfn_range()?

To: "Wei Kong" <weikong.cn@xxxxxxxxx>
Subject: Re: [Xen-devel] VM_FOREIGN could be set into direct_remap_pfn_range()?
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 10 Nov 2009 10:44:00 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 10 Nov 2009 02:44:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <fac556d20911092048s5e4ced95j20ec86ac3ae77f9e@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <fac556d20911092048s5e4ced95j20ec86ac3ae77f9e@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Wei Kong <weikong.cn@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>