[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] PowerPC: Replace hardcoded values of 'pseries-2*' machine in schema



From: Prerna Saxena <prerna linux vnet ibm com>
Date: Mon, 6 Apr 2015 22:56:25 -0500

Qemu-system-ppc64 has introduced new variants of pseries machine type,
such as 'pseries', 'pseries-2.1'..'pseries-2.3'. Replace the hardcoded
values in the schema with a regex that captures this.

Signed-off-by: Prerna Saxena <prerna linux vnet ibm com>
---
 docs/schemas/domaincommon.rng | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 7406d92..a192637 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -421,9 +421,9 @@
       <optional>
         <attribute name="machine">
           <choice>
-            <value>pseries</value>
-            <value>pseries-2.1</value>
-            <value>pseries-2.2</value>
+            <data type="string">
+               <param name="pattern">(pseries)(\-2\.[1-9])?</param>
+             </data>
           </choice>
         </attribute>
       </optional>
-- 
1.8.3.1

-- 
Prerna Saxena

Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]