From: Ian Campbell Subject: Re: [RFC PATCH v2 3/3] tools, libxl: handle the iomem parameter with the memory_mapping hcall Date: Mon, 17 Mar 2014 09:37:04 +0000 Message-ID: <1395049024.4122.13.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Eric Trudeau Cc: "paolo.valente@unimore.it" , Keir Fraser , "stefano.stabellini@eu.citrix.com" , "Ian.Jackson@eu.citrix.com" , Dario Faggioli , Julien Grall , Tim Deegan , "xen-devel@lists.xen.org" , "julien.grall@citrix.com" , Jan Beulich , Arianna Avanzini , "viktor.kleinik@globallogic.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2014-03-14 at 18:39 +0000, Eric Trudeau wrote: > In our target scenarios, we are relying on the Virtualization Extensions in ARM for > security as well as for segregating Linux "machines" in order to share CPU resources > more effectively. > Therefore, we do not want the guest domain to decide the IPA->PA mapping, Dom0 > is in charge of this through hypercalls to Xen. Note that in no case would the guest be able to map arbitrary PA, each PA still needs to be whitelisted by the tools before it can be mapped to the guest whether it is the tools or the guest which actually establishes the mappings. > We like the iomem in the config file, > and we use the irq parameter as well to route IRQs to guests, because it allows > Dom0 only to control how the physical devices are assigned to the DomU's. This > also keeps the guest OS drivers from having to change when they are running in a > virtual machine. > > In our use cases, we want primarily 1:1 mapping for most memory because we have > no IOMMU and each DomU can do DMA and needs 1:1 contiguous memory for that. Lack of an IOMMU and the presence of guest DMA means that things are not going to be completely isolated though. > In our development port of Xen, we do not have the DomU devices in the DT given > to Xen at boot. Therefore, Dom0 does not see these devices and the Dom0 Linux > probe does not try to init the devices. Our near-future plans are to add the devices > targeted for DomU into the Xen DT, but with status property set to disabled. Dom0 > will use some domain plan to create DTs for the DomUs by assigning the appropriate > devices to each and enabling the devices that were disabled in Dom0's DT. > > This is probably more information that you wanted, but it may help in a better > understanding of our usage of Xen. Thanks. Ian.