[libvirt] [PATCH] Allow versioned pc machines for QEmu

Daniel Veillard veillard at redhat.com
Mon Dec 14 16:01:25 UTC 2009


On Fri, Dec 11, 2009 at 09:03:56PM +0100, Diego Elio “Flameeyes” Pettenò wrote:
> Il giorno Fri, 11/12/2009 alle 20.02 +0000, Daniel P. Berrange ha
> scritto:
> > My preference is that we delete this <choice> block entirely and just
> > declare it with a regex allowing a-Z, 0-9, _, -, . 
> 
> I guess whatever choice works ;) I'm mostly concerned that right now my
> configuration files don't validate…

  Okay, I commited the following patch, that should solve the problem,
  thanks !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
-------------- next part --------------
diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index d1d3efb..784f9b1 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -167,13 +167,11 @@
       </optional>
       <optional>
         <attribute name="machine">
-          <choice>
-            <value>xenfv</value>
-            <value>pc</value>
-            <value>isapc</value>
-          </choice>
+          <data type="string">
+            <param name="pattern">[a-zA-Z0-9_\.\-]+</param>
+          </data>
         </attribute>
-        </optional>
+      </optional>
     </group>
   </define>
   <define name="hvmmips">


More information about the libvir-list mailing list