From: Bharata B Rao Date: Fri, 11 Nov 2011 12:51:45 +0000 (+0530) Subject: XML definitions for guest NUMA and parsing routines X-Git-Tag: v0.9.8-rc1~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f7b71b413e42b8bfbae7776c59aaf983caedc3c;p=thirdparty%2Flibvirt.git 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 --- 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 @@ + + + + + + + + + + + + + + + + + + +