Re: [Xen-devel] [PATCH 3/4] libxc: rework vnuma bits in setup_guest

2015-05-19 Thread Wei Liu
On Tue, May 19, 2015 at 06:14:27PM +0100, Wei Liu wrote: [...] > > >> > > >>Does having high memory mean that we need to have 2 vnodes? We should be > > >Yes, see the comment above. > > > > > >>able to cope with multiple vmemranges per node, right? > > > > > >Yes. That's already done in libxl's fun

Re: [Xen-devel] [PATCH 3/4] libxc: rework vnuma bits in setup_guest

2015-05-19 Thread Boris Ostrovsky
On 05/19/2015 01:14 PM, Wei Liu wrote: On Tue, May 19, 2015 at 01:03:59PM -0400, Boris Ostrovsky wrote: On 05/19/2015 12:31 PM, Wei Liu wrote: On Tue, May 19, 2015 at 12:23:07PM -0400, Boris Ostrovsky wrote: On 05/18/2015 11:34 AM, Wei Liu wrote: Make the setup process similar to PV counterpa

Re: [Xen-devel] [PATCH 3/4] libxc: rework vnuma bits in setup_guest

2015-05-19 Thread Wei Liu
On Tue, May 19, 2015 at 01:03:59PM -0400, Boris Ostrovsky wrote: > On 05/19/2015 12:31 PM, Wei Liu wrote: > >On Tue, May 19, 2015 at 12:23:07PM -0400, Boris Ostrovsky wrote: > >>On 05/18/2015 11:34 AM, Wei Liu wrote: > >>>Make the setup process similar to PV counterpart. That is, to allocate a > >>

Re: [Xen-devel] [PATCH 3/4] libxc: rework vnuma bits in setup_guest

2015-05-19 Thread Boris Ostrovsky
On 05/19/2015 12:31 PM, Wei Liu wrote: On Tue, May 19, 2015 at 12:23:07PM -0400, Boris Ostrovsky wrote: On 05/18/2015 11:34 AM, Wei Liu wrote: Make the setup process similar to PV counterpart. That is, to allocate a P2M array that covers the whole memory range and start from there. This is clea

Re: [Xen-devel] [PATCH 3/4] libxc: rework vnuma bits in setup_guest

2015-05-19 Thread Wei Liu
On Tue, May 19, 2015 at 12:23:07PM -0400, Boris Ostrovsky wrote: > On 05/18/2015 11:34 AM, Wei Liu wrote: > >Make the setup process similar to PV counterpart. That is, to allocate a > >P2M array that covers the whole memory range and start from there. This > >is clearer than using an array with no

Re: [Xen-devel] [PATCH 3/4] libxc: rework vnuma bits in setup_guest

2015-05-19 Thread Boris Ostrovsky
On 05/18/2015 11:34 AM, Wei Liu wrote: Make the setup process similar to PV counterpart. That is, to allocate a P2M array that covers the whole memory range and start from there. This is clearer than using an array with no holes in it. Also the dummy layout should take MMIO hole into considerati

[Xen-devel] [PATCH 3/4] libxc: rework vnuma bits in setup_guest

2015-05-18 Thread Wei Liu
Make the setup process similar to PV counterpart. That is, to allocate a P2M array that covers the whole memory range and start from there. This is clearer than using an array with no holes in it. Also the dummy layout should take MMIO hole into consideration. We might end up having two vmemranges