[libvirt] [PATCH 1/2] schema: Allow > UINT_MAX KiB of memory for NUMA nodes

Peter Krempa pkrempa at redhat.com
Tue Dec 1 14:11:04 UTC 2015


Using more than 4TiB of memory per NUMA node would not be possible to
express in the XML without violating the schema. Not that such boxes
would be common, but we should use a longer type at this point.

The pattern is not necessary since libvirt redefines the type already in
basictypes.rng with the same pattern.
---
 docs/schemas/domaincommon.rng | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 8d12606..4804c69 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -5218,9 +5218,7 @@
   </define>
   <!-- Memory as an attribute is in KiB, no way to express a unit -->
   <define name="memoryKB">
-    <data type="unsignedInt">
-      <param name="pattern">[0-9]+</param>
-    </data>
+    <data type="unsignedLong"/>
   </define>
   <define name="domainName">
     <data type="string">
-- 
2.6.2




More information about the libvir-list mailing list