[Xen-devel] arm64: iomem_resource doesn't contain all the region used

2015-10-23 Thread Julien Grall
Hi all, I've been working on trying to get balloon memory hotplug working for ARM64 guest on Xen. In order to find a suitable region to hotplug the fake memory, we are trying to find a free region within iomem_resource. But on ARM64, only an handful number of regions are listed in it. For instan

Re: [Xen-devel] arm64: iomem_resource doesn't contain all the region used

2015-10-23 Thread Ian Campbell
On Fri, 2015-10-23 at 15:58 +0100, Julien Grall wrote: > Is there any way we could register the IO region used on ARM without > having to enforce it in all the drivers? This seems like an uphill battle to me. Why not do as I suggested IRL yesterday and expose the map of "potential RAM" addresses

Re: [Xen-devel] arm64: iomem_resource doesn't contain all the region used

2015-10-28 Thread Julien Grall
(Adding David and Daniel) On 23/10/15 16:45, Ian Campbell wrote: > On Fri, 2015-10-23 at 15:58 +0100, Julien Grall wrote: >> Is there any way we could register the IO region used on ARM without >> having to enforce it in all the drivers? > > This seems like an uphill battle to me. I agree about

Re: [Xen-devel] arm64: iomem_resource doesn't contain all the region used

2015-10-29 Thread Daniel Kiper
On Wed, Oct 28, 2015 at 05:32:54PM +, Julien Grall wrote: > (Adding David and Daniel) > > On 23/10/15 16:45, Ian Campbell wrote: > > On Fri, 2015-10-23 at 15:58 +0100, Julien Grall wrote: > >> Is there any way we could register the IO region used on ARM without > >> having to enforce it in all

Re: [Xen-devel] arm64: iomem_resource doesn't contain all the region used

2015-10-29 Thread Julien Grall
Hi Daniel, On 29/10/15 16:36, Daniel Kiper wrote: > On Wed, Oct 28, 2015 at 05:32:54PM +, Julien Grall wrote: >> (Adding David and Daniel) >> >> On 23/10/15 16:45, Ian Campbell wrote: >>> On Fri, 2015-10-23 at 15:58 +0100, Julien Grall wrote: Is there any way we could register the IO regi

Re: [Xen-devel] arm64: iomem_resource doesn't contain all the region used

2015-10-30 Thread Daniel Kiper
Hey Julien, On Thu, Oct 29, 2015 at 05:24:42PM +, Julien Grall wrote: > Hi Daniel, > > On 29/10/15 16:36, Daniel Kiper wrote: > > On Wed, Oct 28, 2015 at 05:32:54PM +, Julien Grall wrote: > >> (Adding David and Daniel) > >> > >> On 23/10/15 16:45, Ian Campbell wrote: > >>> On Fri, 2015-10-

Re: [Xen-devel] arm64: iomem_resource doesn't contain all the region used

2015-10-30 Thread Julien Grall
On 30/10/15 17:53, Daniel Kiper wrote: > Hey Julien, Hi, > On Thu, Oct 29, 2015 at 05:24:42PM +, Julien Grall wrote: >> Hi Daniel, >> >> On 29/10/15 16:36, Daniel Kiper wrote: >>> On Wed, Oct 28, 2015 at 05:32:54PM +, Julien Grall wrote: (Adding David and Daniel) On 23/10/1

Re: [Xen-devel] arm64: iomem_resource doesn't contain all the region used

2015-10-30 Thread Daniel Kiper
On Fri, Oct 30, 2015 at 06:32:54PM +, Julien Grall wrote: [...] > > Ugh! I though that it is a requirement that every memory/io region user > > must register it using relevant function. It looks that it is not true. > > So, there is only one reliable way to get info about used io/memory regio