Re: [Xen-devel] [PATCH v4 10/14] xen/x86: populate PVHv2 Dom0 physical memory map

2016-12-18 Thread Jan Beulich
>>> On 16.12.16 at 18:38, wrote: > On Fri, Dec 09, 2016 at 09:48:32AM -0700, Jan Beulich wrote: >> >>> On 30.11.16 at 17:49, wrote: >> > @@ -545,11 +552,12 @@ static __init void pvh_map_all_iomem(struct domain >> > *d, unsigned long nr_pages) >> > ASSERT(nr_holes == 0); >> > } >> > >> >

Re: [Xen-devel] [PATCH v4 10/14] xen/x86: populate PVHv2 Dom0 physical memory map

2016-12-16 Thread Roger Pau Monne
On Fri, Dec 09, 2016 at 09:48:32AM -0700, Jan Beulich wrote: > >>> On 30.11.16 at 17:49, wrote: > > @@ -302,7 +307,8 @@ static unsigned long __init compute_dom0_nr_pages( > > avail -= max_pdx >> s; > > } > > > > -need_paging = opt_dom0_shadow || (is_pvh_domain(d) && > > !i

Re: [Xen-devel] [PATCH v4 10/14] xen/x86: populate PVHv2 Dom0 physical memory map

2016-12-09 Thread Jan Beulich
>>> On 30.11.16 at 17:49, wrote: > @@ -302,7 +307,8 @@ static unsigned long __init compute_dom0_nr_pages( > avail -= max_pdx >> s; > } > > -need_paging = opt_dom0_shadow || (is_pvh_domain(d) && > !iommu_hap_pt_share); > +need_paging = opt_dom0_shadow || (has_hvm_contai

[Xen-devel] [PATCH v4 10/14] xen/x86: populate PVHv2 Dom0 physical memory map

2016-11-30 Thread Roger Pau Monne
Craft the Dom0 e820 memory map and populate it. Introduce a helper to remove memory pages that are shared between Xen and a domain, and use it in order to remove low 1MB RAM regions from dom_io in order to assign them to a PVHv2 Dom0. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew