From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: Re: [V4 PATCH 6/7] pvh dom0: Add and remove foreign pages Date: Tue, 3 Dec 2013 17:05:52 -0800 Message-ID: <20131203170552.37c6426d@mantra.us.oracle.com> References: <1386037848-27891-1-git-send-email-mukesh.rathor@oracle.com> <1386037848-27891-7-git-send-email-mukesh.rathor@oracle.com> <529E70B6.7060002@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <529E70B6.7060002@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Xen-devel@lists.xensource.com, Ian Campbell , Stefano Stabellini , george.dunlap@eu.citrix.com, tim@xen.org, keir.xen@gmail.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org On Wed, 04 Dec 2013 00:00:54 +0000 Julien Grall wrote: > > > On 12/03/2013 02:30 AM, Mukesh Rathor wrote: > > In this patch, a new function, xenmem_add_foreign_to_pmap(), is > > added > > xenmem_add_foreign_to_p2m? > > > to map pages from foreign guest into current dom0 for domU creation. > > Such pages are typed p2m_map_foreign. Also, support is added here to > > XENMEM_remove_from_physmap to remove such pages. Note, in the remove > > path, we must release the refcount that was taken during the map > > phase. > > Your remove path is very interesting for the ARM port. For now we are > unable to unmap the foreign page because get_page() will always > return NULL (as dom0 is not the owner). > > I will give a try on ARM to see if it could resolve our problem. > Don't know much about ARM, is the remove path failing to compile on it? You can submit ARM modification patch after it's checked in? thanks mukesh