From: Ian Campbell Subject: Re: [RFC PATCH v2 3/3] tools, libxl: handle the iomem parameter with the memory_mapping hcall Date: Fri, 14 Mar 2014 16:19:59 +0000 Message-ID: <1394813999.6442.147.camel@kazak.uk.xensource.com> References: <1394439953-5723-1-git-send-email-avanzini.arianna@gmail.com> <1394439953-5723-4-git-send-email-avanzini.arianna@gmail.com> <1394724477.25873.105.camel@kazak.uk.xensource.com> <5321D005.8020203@linaro.org> <1394728598.4159.47.camel@Solace> <5321E111.2000103@linaro.org> <1394731935.16364.36.camel@kazak.uk.xensource.com> <1394735851.4159.82.camel@Solace> <1394790366.16364.64.camel@kazak.uk.xensource.com> <1394799318.4159.183.camel@Solace> <1394801349.6442.68.camel@kazak.uk.xensource.com> <1394811906.4159.229.camel@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1394811906.4159.229.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: paolo.valente@unimore.it, Keir Fraser , stefano.stabellini@eu.citrix.com, Ian.Jackson@eu.citrix.com, Julien Grall , Tim Deegan , xen-devel@lists.xen.org, julien.grall@citrix.com, etrudeau@broadcom.com, Jan Beulich , Arianna Avanzini , viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org On Fri, 2014-03-14 at 16:45 +0100, Dario Faggioli wrote: > > > To me, a legitimate use case is this: I want to run version X of my non > > > DT capable OS on version Z of Xen, on release K of board B. In such > > > configuration, the GPIO controller is at MFN 0x000abcd, and I want only > > > VM V to have direct access to it (board B dos not have an IOMMU). > > > > > > I would also assume that one is in full control of the guest address > > > > If "one" here is the user then I don't think so. > > > Well, fact is "user", in this context, is who puts the embedded system > together into a product, rather than folks actually using such product, > so, I don't see that much unlikely. I don't imagine even those folks are going to want to hack the hypervisor to change the guest address space layout, so I don't think you can assume they have full control, they will get whatever the layout for that version of Xen is. They do control the hypervisor version so I suppose they control in that sense. If they *are* hacking the hypervisor to fiddle with the guest addres space then they have no need for this toolstack integration feature, they can (and likely will) just bodge it in the same place. Ian.