[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xen: arm: configure correct dom0_gnttab_start/size



On Thu, 2014-09-11 at 13:11 -0700, Julien Grall wrote:
> Hi Ian,
> 
> On 11/09/14 08:21, Ian Campbell wrote:
> > This just fixes vexpress, I wonder if a followup patch should either remove 
> > the
> > default dom0_gnttab (forcing all platforms to specify one explicitly) or 
> > make
> > the default something less arbitrary than 0xb0000000, e.g. 0x0-0x20000 or
> > 0xfffe0000-0x100000000 (very start or very end of RAM). Perhaps with a 
> > command
> > line option to override for new platform hacking.
> 
> Dropping the default value sounds a good solution.
> 
> > Or maybe we should search for an unused hole in the dom0 RAM space?
> 
> I'm not sure to understand your suggestion here. Did you mean that as 
> DOM0 will never use all the host RAM, we could find a space in the RAM 
> to use for grant table?

Something like that, yes.

In fact it occurred to me last night that that since the gnttab needs to
be populate anyway we could allocate it early in the case of 1:1 dom0
and then use that address as a 1:1 value for the gnttab IPA passed to
dom0.

For non-1:1 dom0 we could safely put it right over the dom0 memory
allocation, which as you observe is never going to be all of host ram
(since Xen must be using something...)

In fact, maybe using Xen's own 2M IPA would work everywhere.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.