From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [V2 PATCH 6/8] PVH dom0: Introduce p2m_map_foreign Date: Tue, 26 Nov 2013 17:35:27 +0000 Message-ID: <5294DBDF.30900@eu.citrix.com> References: <1385165018-25933-1-git-send-email-mukesh.rathor@oracle.com> <1385165018-25933-7-git-send-email-mukesh.rathor@oracle.com> <1385482298.23112.110.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385482298.23112.110.camel@kazak.uk.xensource.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: "xen-devel@lists.xensource.com" , Stefano Stabellini , Tim Deegan , "keir.xen@gmail.com" , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 11/26/2013 04:11 PM, Ian Campbell wrote: > On Tue, 2013-11-26 at 16:00 +0000, George Dunlap wrote: >> On Sat, Nov 23, 2013 at 12:03 AM, Mukesh Rathor >> wrote: >>> In this patch, a new type p2m_map_foreign is introduced for pages >>> that toolstack on PVH dom0 maps from foreign domains that its creating >>> or supporting during it's run time. >>> >>> Signed-off-by: Mukesh Rathor >> >> Why is this needed? Does ARM have a concept of p2m_map_foreign? grep >> doesn't turn it up... how does ARM dom0 deal with foreign mappings, >> and is there a reason we can't copy their approach? > > The p2m types are currently per-arch. ARM doesn't currently have much in > the way of the concept of such things, but it should eventually and > foreign map seems likely to be one of them. Oh, right -- I see now; the interface Mukesh is implementing -- XENMAPSPACE_gmfn_foreign and XENMEM_add_to_physmap_range -- is basically the same as the ARM dom0 interface. That's an important piece of information. -George