From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Re: [PATCH v2] xen/gntdev, gntalloc: Remove unneeded VM flags Date: Wed, 9 Mar 2011 12:05:34 -0500 Message-ID: <20110309170534.GC8049@dumpdata.com> References: <1299527629.3731.15.camel@localhost.localdomain> <1299529137-5478-1-git-send-email-dgdegra@tycho.nsa.gov> <1299578040.17339.413.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1299578040.17339.413.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Daniel De Graaf , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > > @@ -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?