Re: [Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Dario Faggioli
On Mon, 2015-07-06 at 14:17 +0100, Wei Liu wrote: > In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the > number of super pages is calculated with the number of total pages. That > is wrong. It breaks PV guest vNUMA. The correct number of super pages > should be derived from the n

Re: [Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Wei Liu
On Mon, Jul 06, 2015 at 02:33:35PM +0100, Ross Lagerwall wrote: > On 07/06/2015 02:30 PM, Wei Liu wrote: > >On Mon, Jul 06, 2015 at 02:26:37PM +0100, Andrew Cooper wrote: > >>On 06/07/15 14:17, Wei Liu wrote: > >>>In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the > >>>number of

Re: [Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Ross Lagerwall
On 07/06/2015 02:30 PM, Wei Liu wrote: On Mon, Jul 06, 2015 at 02:26:37PM +0100, Andrew Cooper wrote: On 06/07/15 14:17, Wei Liu wrote: In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the number of super pages is calculated with the number of total pages. That is wrong. It bre

Re: [Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Wei Liu
On Mon, Jul 06, 2015 at 02:26:37PM +0100, Andrew Cooper wrote: > On 06/07/15 14:17, Wei Liu wrote: > > In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the > > number of super pages is calculated with the number of total pages. That > > is wrong. It breaks PV guest vNUMA. The corre

Re: [Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Andrew Cooper
On 06/07/15 14:17, Wei Liu wrote: > In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the > number of super pages is calculated with the number of total pages. That > is wrong. It breaks PV guest vNUMA. The correct number of super pages > should be derived from the number of pages w

Re: [Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Ross Lagerwall
On 07/06/2015 02:17 PM, Wei Liu wrote: In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the number of super pages is calculated with the number of total pages. That is wrong. It breaks PV guest vNUMA. The correct number of super pages should be derived from the number of pages wi