Skip to contentSkip to conversation

libxc: vnodes allocation on NUMA nodes.

PATCH Superseded Elena Ufimtseva 1 participant 1 message Oct 16, 2013

v1 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/7 libxc: vnodes allocation on NUMA nodes.

If vnuma topology is defined and its a hardware NUMA machine, allocate vnodes on physical numa nodes based on vnode_to_pnode map.

---
Changes since RFC v2:
- fixed bug in vnodes allocation part;

---
 tools/libxc/xc_dom.h     |    1 +
 tools/libxc/xc_dom_x86.c |   85 +++++++++++++++++++++++++++++++++++++++++-----
 tools/libxc/xg_private.h |    1 +
 3 files changed, 78 insertions(+), 9 deletions(-)
tools/libxc/xc_dom.h +1 -0
index a271b7c..d1ba573 100644
@@ -371,6 +371,7 @@ static inline xen_pfn_t xc_dom_p2m_guest(struct xc_dom_image *dom,
 int arch_setup_meminit(struct xc_dom_image *dom);
 int arch_setup_bootearly(struct xc_dom_image *dom);
 int arch_setup_bootlate(struct xc_dom_image *dom);
+int arch_boot_numa_alloc(struct xc_dom_image *dom);
 
 /*
  * Local variables:
tools/libxc/xc_dom_x86.c +76 -9

110 lines not on this page · raw message

tools/libxc/xg_private.h +1 -0
index 5ff2124..9554b71 100644
@@ -127,6 +127,7 @@ typedef uint64_t l4_pgentry_64_t;
 #define ROUNDUP(_x,_w) (((unsigned long)(_x)+(1UL<<(_w))-1) & ~((1UL<<(_w))-1))
 #define NRPAGES(x) (ROUNDUP(x, PAGE_SHIFT) >> PAGE_SHIFT)
 
+#define VNUMA_NO_NODE ~((unsigned int)0)
 
 /* XXX SMH: following skanky macros rely on variable p2m_size being set */
 /* XXX TJD: also, "guest_width" should be the guest's sizeof(unsigned long) */
Signature · 1 line
1.7.10.4