From: Wei Liu Subject: Re: [PATCH XEN v4 14/23] tools: foreignmemory: provide xenforeignmemory_unmap. Date: Thu, 29 Oct 2015 16:28:46 +0000 Message-ID: <20151029162846.GF18674@zion.uk.xensource.com> References: <1445440941.9563.163.camel@citrix.com> <1445441010-25776-1-git-send-email-ian.campbell@citrix.com> <1445441010-25776-15-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1445441010-25776-15-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: wei.liu2@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Oct 21, 2015 at 04:23:21PM +0100, Ian Campbell wrote: > And require it be used instead of direct munmap. > > This will allow e.g. Valgrind hooks to help track incorrect use of > foreign mappings. > > Switch all uses of xenforeignmemory_map to use > xenforeignmemory_unmap, not that foreign mappings via the libxc compat > xc_map_foreign_* interface will not take advantage of this and will > need converting. > > Signed-off-by: Ian Campbell Acked-by: Wei Liu