]> xenbits.xensource.com Git - libvirt.git/commitdiff
Misc XML schema fixes for libxl
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 29 Nov 2017 17:43:29 +0000 (17:43 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 30 Nov 2017 10:20:06 +0000 (10:20 +0000)
The libxlxml2domconfigdata directory was not covered in the RNG schema
tests. This hid a few bugs in both the libxl XML files and the RNG
schema itself.

Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
docs/schemas/domaincommon.rng
tests/libxlxml2domconfigdata/basic-hvm.xml
tests/libxlxml2domconfigdata/vnuma-hvm.xml
tests/virschematest.c

index 5b9fc162c4ea00770b3961f0594596427d91946f..7f197d9cee706a1f544ebff3edcc935402145df9 100644 (file)
       <optional>
         <element name="bootloader">
           <choice>
-            <ref name="absFilePath"/>
+            <text/>
             <empty/>
           </choice>
         </element>
                 <choice>
                   <value>kvm</value>
                   <value>vfio</value>
+                  <value>xen</value>
                 </choice>
               </attribute>
             </group>
index d8cd2a283e89920d531bf32e1f0f7d1b627b0155..68c2ef08afe04b1785eb976cf911d220091a2c5c 100644 (file)
@@ -8,7 +8,7 @@
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
   <on_crash>destroy</on_crash>
-  <clock sync='utc'/>
+  <clock offset='utc'/>
   <os>
     <type>hvm</type>
     <loader>/usr/lib/xen/boot/hvmloader</loader>
index 28ad923e8f0875981a5bbe35c5e1a2dec6ea7f9b..6e265e31a9b8d74a07b59566aebf3f54d8b283c8 100644 (file)
@@ -8,7 +8,7 @@
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
   <on_crash>destroy</on_crash>
-  <clock sync='utc'/>
+  <clock offset='utc'/>
   <os>
     <type>hvm</type>
     <loader>/usr/lib/xen/boot/hvmloader</loader>
index 9dc4dc5ed87ad9a706116503d1e7e81524927d01..f1d11437e0eac11f2abc88ea813e78d9b8290f9f 100644 (file)
@@ -221,7 +221,7 @@ mymain(void)
                 "qemuxml2argvdata", "sexpr2xmldata", "xmconfigdata",
                 "xml2sexprdata", "qemuxml2xmloutdata", "lxcxml2xmldata",
                 "lxcxml2xmloutdata", "bhyvexml2argvdata", "genericxml2xmlindata",
-                "genericxml2xmloutdata", "xlconfigdata",
+                "genericxml2xmloutdata", "xlconfigdata", "libxlxml2domconfigdata",
                 "qemuhotplugtestdomains");
     DO_TEST_DIR("domaincaps.rng", "domaincapsschemadata");
     DO_TEST_DIR("domainsnapshot.rng", "domainsnapshotxml2xmlin",