From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH 5/7] xen-gntdev: Add reference counting to maps Date: Thu, 16 Dec 2010 16:51:38 -0800 Message-ID: <4D0AB41A.70202@goop.org> References: <1292545063-32107-1-git-send-email-dgdegra@tycho.nsa.gov> <1292545063-32107-6-git-send-email-dgdegra@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1292545063-32107-6-git-send-email-dgdegra@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com Cc: Daniel De Graaf , xen-devel@lists.xensource.com, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org On 12/16/2010 04:17 PM, Daniel De Graaf wrote: > -static void gntdev_free_map(struct grant_map *map) > -{ > - unsigned i; > + atomic_sub(map->count, &pages_mapped); > > - if (!map) > - return; > + if (!use_ptemod) Does this depend on the later hvm patch? J