]> xenbits.xensource.com Git - people/pauldu/xen.git/commit
libxc: allocate memory with vNUMA information for PV guest
authorWei Liu <wei.liu2@citrix.com>
Mon, 16 Mar 2015 09:52:23 +0000 (09:52 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Mar 2015 12:04:54 +0000 (12:04 +0000)
commitba59e2ce935de7bd6a0cbe36488ca99b3489cf17
treefde692cc09814f6180ad1442a0656aa213993687
parent840837907c6186307c19abbec926852ba448facd
libxc: allocate memory with vNUMA information for PV guest

From libxc's point of view, it only needs to know vnode to pnode mapping
and size of each vnode to allocate memory accordingly. Add these fields
to xc_dom structure.

The caller might not pass in vNUMA information. In that case, a dummy
layout is generated for the convenience of libxc's allocation code. The
upper layer (libxl etc) still sees the domain has no vNUMA
configuration.

Note that for this patch on PV x86 guest can have multiple regions of
ram allocated.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Elena Ufimtseva <ufimtseva@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/include/xc_dom.h
tools/libxc/include/xenguest.h
tools/libxc/xc_dom_x86.c