[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

On Tue, Apr 07, 2015 at 03:27:20PM +0530, Prerna Saxena wrote:
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(-)
I think this can be relaxed to allow all strings, as suggested by: https://www.redhat.com/archives/libvir-list/2015-April/msg00496.html Jan
participants (2)
-
Ján Tomko
-
Prerna Saxena