From: Ian Campbell Subject: Re: [PATCH] xen: gntdev: move use of GNTMAP_contains_pte next to the map_op Date: Wed, 8 Dec 2010 11:56:05 +0000 Message-ID: <1291809365.13966.4546.camel@zakaz.uk.xensource.com> References: <1291809186-21431-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1291809186-21431-1-git-send-email-ian.campbell@citrix.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: "xen-devel@lists.xensource.com" Cc: "Derek G. Murray" , Jeremy Fitzhardinge , Gerd Hoffmann , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2010-12-08 at 11:53 +0000, Ian Campbell wrote: > This flag controls the meaning of gnttab_map_grant_ref.host_addr and > specifies that the field contains a refernce to the pte entry to be > used to perform the mapping. Therefore move the use of this flag to > the point at which we actually use a reference to the pte instead of > something else, splitting up the usage of the flag in this way is > confusing and potentially error prone. > > The other flags are all properties of the mapping itself as opposed to > properties of the hypercall arguments and therefore it make sense to > continue to pass them round in map->flags. > > Signed-off-by: Ian Campbell > Cc: Jeremy Fitzhardinge > Cc: Stefano Stabellini > Cc: Derek G. Murray > Cc: Gerd Hoffmann > --- > drivers/xen/gntdev.c | 5 +++-- > drivers/xen/hypercall.c | 18 ++++++++++++++---- Damn, a bunch of other hacking got added here by mistake, I'll resend!