Re: [Xen-devel] [PATCH v6 04/23] libxc: duplicate snippet to allocate p2m_host array

2015-03-02 Thread Konrad Rzeszutek Wilk
> > @@ -772,15 +772,16 @@ int arch_setup_meminit(struct xc_dom_image *dom) > > return rc; > > } > > > > -dom->p2m_host = xc_dom_malloc(dom, sizeof(xen_pfn_t) * > > dom->total_pages); > > -if ( dom->p2m_host == NULL ) > > -return -EINVAL; > > - > > if ( dom-

Re: [Xen-devel] [PATCH v6 04/23] libxc: duplicate snippet to allocate p2m_host array

2015-03-02 Thread Konrad Rzeszutek Wilk
On Mon, Mar 02, 2015 at 04:18:08PM +, Ian Campbell wrote: > On Mon, 2015-03-02 at 15:33 +, Wei Liu wrote: > > On Mon, Mar 02, 2015 at 03:26:58PM +, Ian Campbell wrote: > > > On Thu, 2015-02-26 at 15:55 +, Wei Liu wrote: > > > > Currently all in tree code doesn't set the superpage fl

Re: [Xen-devel] [PATCH v6 04/23] libxc: duplicate snippet to allocate p2m_host array

2015-03-02 Thread Ian Campbell
On Mon, 2015-03-02 at 15:33 +, Wei Liu wrote: > On Mon, Mar 02, 2015 at 03:26:58PM +, Ian Campbell wrote: > > On Thu, 2015-02-26 at 15:55 +, Wei Liu wrote: > > > Currently all in tree code doesn't set the superpage flag, but Konrad > > > wants it retained for the moment. > > > > ... be

Re: [Xen-devel] [PATCH v6 04/23] libxc: duplicate snippet to allocate p2m_host array

2015-03-02 Thread Wei Liu
On Mon, Mar 02, 2015 at 03:26:58PM +, Ian Campbell wrote: > On Thu, 2015-02-26 at 15:55 +, Wei Liu wrote: > > Currently all in tree code doesn't set the superpage flag, but Konrad > > wants it retained for the moment. > > ... because? I can't seem to see any relevant mails from Konrad in m

Re: [Xen-devel] [PATCH v6 04/23] libxc: duplicate snippet to allocate p2m_host array

2015-03-02 Thread Ian Campbell
On Thu, 2015-02-26 at 15:55 +, Wei Liu wrote: > Currently all in tree code doesn't set the superpage flag, but Konrad > wants it retained for the moment. ... because? I can't seem to see any relevant mails from Konrad in my vnuma patch folder. In any case, the why is far more important than t

[Xen-devel] [PATCH v6 04/23] libxc: duplicate snippet to allocate p2m_host array

2015-02-26 Thread Wei Liu
Currently all in tree code doesn't set the superpage flag, but Konrad wants it retained for the moment. As I'm going to change the p2m_host array allocation, duplicate the code snippet to allocate p2m_host array in this patch, so that we retain the behaviour in superpage case. This patch introduc