On Fri, Dec 11, 2009 at 02:12:20PM +0100, Diego Elio Petten? wrote:
* docs/schemas/domain.rng: add pattern for pc-0.10, pc-0.11 and
similar
machine types
---
docs/schemas/domain.rng | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index d1d3efb..dd3f732 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -171,6 +171,9 @@
<value>xenfv</value>
<value>pc</value>
<value>isapc</value>
+ <data type="string">
+ <param name="pattern">pc-[0-9\.]+</param>
+ </data>
</choice>
</attribute>
</optional>
My preference is that we delete this <choice> block entirely and just
declare it with a regex allowing a-Z, 0-9, _, -, . Even with your
addition I know there are places where this will still break. The
values for this attribute are dynamically extracted from the QEMU
binary, so whatever QEMU reports is the only valid list. The RNG will
always be chasing the QEMU changes if we try to duplicate the data.
Regards,
Daniel
--
|: Red Hat, Engineering, London -o-
http://people.redhat.com/berrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org -o-
http://ovirt.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|