From: Ian Campbell Subject: Re: [RFC PATCH v2 3/3] tools, libxl: handle the iomem parameter with the memory_mapping hcall Date: Thu, 13 Mar 2014 15:51:14 +0000 Message-ID: <1394725874.25873.124.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> <5321E0180200007800123CF7@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5321E0180200007800123CF7@nat28.tlf.novell.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: Jan Beulich Cc: paolo.valente@unimore.it, Keir Fraser , stefano.stabellini@eu.citrix.com, Tim Deegan , dario.faggioli@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, julien.grall@citrix.com, etrudeau@broadcom.com, Arianna Avanzini , viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org On Thu, 2014-03-13 at 15:43 +0000, Jan Beulich wrote: > >>> On 13.03.14 at 16:27, Ian Campbell wrote: > > On Mon, 2014-03-10 at 09:25 +0100, Arianna Avanzini wrote: > >> Currently, the configuration-parsing code concerning the handling of the > >> iomem parameter only invokes the XEN_DOMCTL_iomem_permission hypercall. > >> This commit lets the XEN_DOMCTL_memory_mapping hypercall be invoked > >> after XEN_DOMCTL_iomem_permission when the iomem parameter is parsed > >> from a domU configuration file, so that the address range can be mapped > >> to the address space of the domU. > >> NOTE: the added code is still common to both x86 and ARM; it also > >> implements a simple 1:1 mapping that could clash with the domU's > >> existing memory layout if the range is already in use in the > >> guest's address space. > > > > In that case you need to CC the x86 maintainers (Jan, Keir, Tim) here. > > It doesn't seem to me that this is going to be the correct thing to do > > for either x86 PV or x86 HVM guests. > > > > My gut feeling is that this should be ifdef'd or otherwise made > > conditional. > > At the very least - it really looks more like a temporary hack than > a long term solution to me. Why would we ever want, for other > than experimental purposes, a 1:1 address relationship baked > into anything? Indeed, although that's slightly secondary to whether these call make sense at all for x86 regardless of whether they are 1:1 or not. Ian.