Re: [Xen-devel] [PATCH v3.1 12/15] xen/x86: populate PVHv2 Dom0 physical memory map

2016-11-28 Thread Roger Pau Monne
On Mon, Nov 28, 2016 at 06:49:42AM -0700, Jan Beulich wrote: > >>> On 28.11.16 at 14:30, wrote: > > On Mon, Nov 28, 2016 at 04:41:22AM -0700, Jan Beulich wrote: > >> >>> On 28.11.16 at 12:26, wrote: > >> > On Fri, Nov 11, 2016 at 10:16:43AM -0700, Jan Beulich wrote: > >> >> >>> On 29.10.16 at 10:

Re: [Xen-devel] [PATCH v3.1 12/15] xen/x86: populate PVHv2 Dom0 physical memory map

2016-11-28 Thread Jan Beulich
>>> On 28.11.16 at 14:30, wrote: > On Mon, Nov 28, 2016 at 04:41:22AM -0700, Jan Beulich wrote: >> >>> On 28.11.16 at 12:26, wrote: >> > On Fri, Nov 11, 2016 at 10:16:43AM -0700, Jan Beulich wrote: >> >> >>> On 29.10.16 at 10:59, wrote: >> >> > +saved_current = current; >> >> > +

Re: [Xen-devel] [PATCH v3.1 12/15] xen/x86: populate PVHv2 Dom0 physical memory map

2016-11-28 Thread Roger Pau Monne
On Mon, Nov 28, 2016 at 04:41:22AM -0700, Jan Beulich wrote: > >>> On 28.11.16 at 12:26, wrote: > > On Fri, Nov 11, 2016 at 10:16:43AM -0700, Jan Beulich wrote: > >> >>> On 29.10.16 at 10:59, wrote: > >> > +static int __init hvm_steal_ram(struct domain *d, unsigned long size, > >> > +

Re: [Xen-devel] [PATCH v3.1 12/15] xen/x86: populate PVHv2 Dom0 physical memory map

2016-11-28 Thread Jan Beulich
>>> On 28.11.16 at 12:26, wrote: > On Fri, Nov 11, 2016 at 10:16:43AM -0700, Jan Beulich wrote: >> >>> On 29.10.16 at 10:59, wrote: >> > +static int __init hvm_steal_ram(struct domain *d, unsigned long size, >> > +paddr_t limit, paddr_t *addr) >> > +{ >> > +uns

Re: [Xen-devel] [PATCH v3.1 12/15] xen/x86: populate PVHv2 Dom0 physical memory map

2016-11-28 Thread Roger Pau Monne
On Fri, Nov 11, 2016 at 10:16:43AM -0700, Jan Beulich wrote: > >>> On 29.10.16 at 10:59, wrote: > > +static int __init hvm_populate_memory_range(struct domain *d, uint64_t > > start, > > + uint64_t size) > > +{ > > +unsigned int order, i = 0; > > +

Re: [Xen-devel] [PATCH v3.1 12/15] xen/x86: populate PVHv2 Dom0 physical memory map

2016-11-11 Thread Jan Beulich
>>> On 29.10.16 at 10:59, wrote: > +static int __init hvm_populate_memory_range(struct domain *d, uint64_t start, > + uint64_t size) > +{ > +unsigned int order, i = 0; > +struct page_info *page; > +int rc; > +#define MAP_MAX_ITER 64 > + > +

[Xen-devel] [PATCH v3.1 12/15] xen/x86: populate PVHv2 Dom0 physical memory map

2016-10-29 Thread Roger Pau Monne
Craft the Dom0 e820 memory map and populate it. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v2: - Introduce get_order_from_bytes_floor as a local function to domain_build.c. - Remove extra asserts. - Make hvm_populate_memory_range return an error