[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH for-4.6 v2 3/3] libxc: fix vNUMA memory allocation



On Thu, 2015-08-13 at 16:41 +0100, Wei Liu wrote:
> We should use new_memflags in xc_domain_populate_physmap. That 
> variable
> contains node information.

Same question as v1.

> 
> Reported-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
> Reviewed-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
> ---
>  tools/libxc/xc_hvm_build_x86.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/libxc/xc_hvm_build_x86.c 
> b/tools/libxc/xc_hvm_build_x86.c
> index ec11f15..ea250dd 100644
> --- a/tools/libxc/xc_hvm_build_x86.c
> +++ b/tools/libxc/xc_hvm_build_x86.c
> @@ -486,7 +486,8 @@ static int setup_guest(xc_interface *xch,
>  
>                  done = xc_domain_populate_physmap(xch, dom, 
> nr_extents,
>                                                   
>  SUPERPAGE_1GB_SHIFT,
> -                                                  memflags, 
> sp_extents);
> +                                                  new_memflags,
> +                                                  sp_extents);
>  
>                  if ( done > 0 )
>                  {
> @@ -526,7 +527,8 @@ static int setup_guest(xc_interface *xch,
>  
>                      done = xc_domain_populate_physmap(xch, dom, 
> nr_extents,
>                                                       
>  SUPERPAGE_2MB_SHIFT,
> -                                                      memflags, 
> sp_extents);
> +                                                      new_memflags,
> +                                                      sp_extents);
>  
>                      if ( done > 0 )
>                      {

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.