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] Re: [PATCH v2] xen/gntdev, gntalloc: Remove unneeded VM

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [PATCH v2] xen/gntdev, gntalloc: Remove unneeded VM flags
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Wed, 9 Mar 2011 12:05:34 -0500
Cc: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 09 Mar 2011 09:07:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1299578040.17339.413.camel@xxxxxxxxxxxxxxxxxxxxxx>
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: <1299527629.3731.15.camel@xxxxxxxxxxxxxxxxxxxxx> <1299529137-5478-1-git-send-email-dgdegra@xxxxxxxxxxxxx> <1299578040.17339.413.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
> > @@ -471,8 +483,6 @@ static int gntalloc_mmap(struct file *filp, struct 
> > vm_area_struct *vma)
> >     vma->vm_private_data = gref;
> >  
> >     vma->vm_flags |= VM_RESERVED;
> > -   vma->vm_flags |= VM_DONTCOPY;
> > -   vma->vm_flags |= VM_PFNMAP | VM_PFN_AT_MMAP;

So the gntalloc driver can be used on PV. You remove the DONTCOPY,PFNMAP, and 
PFN_AT_MMAP
.. while

> > -   vma->vm_flags |= VM_RESERVED|VM_DONTCOPY|VM_DONTEXPAND|VM_PFNMAP;
> > +   vma->vm_flags |= VM_RESERVED|VM_DONTEXPAND;
> > +
> > +   if (use_ptemod)
> > +           vma->vm_flags |= VM_DONTCOPY|VM_PFNMAP;
> >  

Here (gntdev) you are more careful. Should we do the same check under PV
for the gntalloc driver?

Have you tested this driver in PV <-> HVM env?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel