From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v7 07/10] xen/common: move the memory_mapping DOMCTL hypercall to common code Date: Tue, 06 May 2014 17:54:24 +0100 Message-ID: <536913C0.3090206@linaro.org> References: <1399305254-3695-1-git-send-email-avanzini.arianna@gmail.com> <1399305254-3695-8-git-send-email-avanzini.arianna@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1399305254-3695-8-git-send-email-avanzini.arianna@gmail.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: Arianna Avanzini , xen-devel@lists.xen.org Cc: julien.grall@citrix.com, paolo.valente@unimore.it, keir@xen.org, stefano.stabellini@eu.citrix.com, tim@xen.org, dario.faggioli@citrix.com, Ian.Jackson@eu.citrix.com, Ian.Campbell@eu.citrix.com, etrudeau@broadcom.com, JBeulich@suse.com, andrew.cooper3@citrix.com, viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org Hi Arianna, On 05/05/2014 04:54 PM, Arianna Avanzini wrote: > + ret = iomem_permit_access(d, mfn, mfn_end); > + if ( !ret ) > + { > + ret = map_mmio_regions(d, gfn, nr_mfns, _mfn(mfn)); The code of map_mmio_regions differs between x86 on ARM. On the former architecture, if Xen fails to map a page, it will unmap all the previous page. It's not the case on ARM. Regards, -- Julien Grall