From: Gerd Hoffmann Subject: Re: [Qemu-devel] Re: [PATCH RFC V4 10/14] Introduce qemu_ram_ptr_unlock. Date: Wed, 29 Sep 2010 09:38:02 +0200 Message-ID: <4CA2ECDA.5080309@redhat.com> References: <1285686097-13036-1-git-send-email-anthony.perard@citrix.com> <1285686097-13036-11-git-send-email-anthony.perard@citrix.com> <4CA2064A.7020701@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4CA2064A.7020701@codemonkey.ws> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony Liguori Cc: anthony.perard@citrix.com, xen-devel@lists.xensource.com, qemu-devel@nongnu.org, Stefano.Stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On 09/28/10 17:14, Anthony Liguori wrote: > On 09/28/2010 10:01 AM, anthony.perard@citrix.com wrote: >> From: Anthony PERARD >> >> This function allows to unlock a ram_ptr give by qemu_get_ram_ptr. After >> a call to qemu_ram_ptr_unlock, the pointer may be unmap from QEMU when >> used with Xen. >> >> Signed-off-by: Anthony PERARD > > Why isn't hooking cpu_physical_memory_{map,unmap}() not enough? That's > really the intention of the API. I think quite a bunch of stuff stops working then because it doesn't properly use the map/unmap API ... cheers, Gerd