From: Ian Campbell Subject: Re: [PATCH v8 01/14] arch/arm: domain build: let dom0 access I/O memory of mapped devices Date: Tue, 10 Jun 2014 16:04:44 +0100 Message-ID: <1402412684.20641.27.camel@kazak.uk.xensource.com> References: <1401015115-7610-1-git-send-email-avanzini.arianna@gmail.com> <1401015115-7610-2-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: <1401015115-7610-2-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 Cc: paolo.valente@unimore.it, keir@xen.org, stefano.stabellini@eu.citrix.com, Ian.Jackson@eu.citrix.com, dario.faggioli@citrix.com, tim@xen.org, xen-devel@lists.xen.org, julien.grall@citrix.com, etrudeau@broadcom.com, JBeulich@suse.com, andrew.cooper3@citrix.com, viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org On Sun, 2014-05-25 at 12:51 +0200, Arianna Avanzini wrote: > Currently, dom0 is allowed access to the I/O memory ranges used > to access devices exposed to it, but it doesn't have those > ranges in its iomem_caps. This commit implements the correct > bookkeeping in the generic function which actually maps a > device's I/O memory to the domain, adding the ranges to the > domain's iomem_caps. > > NOTE: This commit suffers from the following limitations; > . with this patch, I/O memory ranges pertaining disabled > devices are not mapped; > . the "iomem" option could be used to map memory ranges that > are not described in the device tree. > In both these cases, this patch does not allow the domain > the privileges needed to map the needed I/O memory ranges > afterwards. > > Signed-off-by: Arianna Avanzini > Acked-by: Ian Campbell > Acked-by: Julien Grall I applied this one. Patch #2 here had comments and I wasn't brave enough to try and cherry pick patches from past that because I wasn't sure if there were dependencies.