From: Ian Campbell Subject: Re: [V4 PATCH 6/7] pvh dom0: Add and remove foreign pages Date: Wed, 4 Dec 2013 09:44:55 +0000 Message-ID: <1386150295.15530.5.camel@kazak.uk.xensource.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> <20131203170552.37c6426d@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20131203170552.37c6426d@mantra.us.oracle.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: Mukesh Rathor Cc: Xen-devel@lists.xensource.com, Stefano Stabellini , george.dunlap@eu.citrix.com, Julien Grall , tim@xen.org, keir.xen@gmail.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org On Tue, 2013-12-03 at 17:05 -0800, Mukesh Rathor wrote: > 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? No, we don't break things like this even transiently. You can find an ARM cross compiler at https://launchpad.net/linaro-toolchain-binaries/+download and cross building just the hypervisor part is pretty trivial. Please make sure the ARM side at least compiles, probably by defining the macros which you introduce to have fixed values which equate to the current behaviour. Ian.