From 5f7b71b413e42b8bfbae7776c59aaf983caedc3c Mon Sep 17 00:00:00 2001 From: Bharata B Rao Date: Fri, 11 Nov 2011 18:21:45 +0530 Subject: [PATCH] XML definitions for guest NUMA and parsing routines This patch adds XML definitions for guest NUMA specification and contains routines to parse the same. The guest NUMA specification looks like this: ... ... Signed-off-by: Bharata B Rao --- AUTHORS | 1 + docs/formatdomain.html.in | 29 ++++++++++++ docs/schemas/domaincommon.rng | 33 +++++++++++++- src/conf/cpu_conf.c | 86 ++++++++++++++++++++++++++++++++++- src/conf/cpu_conf.h | 13 ++++++ src/conf/domain_conf.c | 7 +++ 6 files changed, 166 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 92ac1ed7d7..272a82869e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -205,6 +205,7 @@ Patches have also been contributed by: Patrice LACHANCE Eli Qiao Michael Wood + Bharata B Rao [....send patches to get your name here....] diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index cbad196d9b..61123ac1ca 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -628,6 +628,35 @@ +

+ Guest NUMA topology can be specifed using the numa element. + Since 0.9.8 +

+ +
+  ...
+  <cpu>
+    ...
+    <numa>
+      <cell cpus='0-3' memory='512000'/>
+      <cell cpus='4-7' memory='512000'/>
+    </numa>
+    ...
+  </cpu>
+  ...
+ +

+ Each cell element specifies a NUMA cell or a NUMA node. + cpus specifies the CPU or range of CPUs that are part of + the node. memory specifies the node memory in kilobytes + (i.e. blocks of 1024 bytes). Each cell or node is assigned cellid + or nodeid in the increasing order starting from 0. +

+ +

+ This guest NUMA specification is currently available only for QEMU/KVM. +

+

Lifecycle control

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index b6f858e382..8968ee6029 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -2297,7 +2297,16 @@ - + + + + + + + + + + @@ -2311,6 +2320,9 @@ + + + @@ -2371,6 +2383,25 @@ + + + + + + + + + + + + + + + + + + +