]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: check flags in qemuDomainGetXMLDesc
authorLaine Stump <laine@laine.org>
Sat, 2 Jul 2011 04:53:06 +0000 (00:53 -0400)
committerLaine Stump <laine@laine.org>
Tue, 5 Jul 2011 16:33:21 +0000 (12:33 -0400)
Although most functions with flags check to verify no application is
passing in flag bits that are currently undefined, for some reason
this function wasn't.

src/qemu/qemu_driver.c

index aab3ab96daea02b34bba066368e724cc53cd05d6..5d61f0ad1f45efe00dbb2213bdb6d064c765f075 100644 (file)
@@ -3825,6 +3825,10 @@ static char *qemuDomainGetXMLDesc(virDomainPtr dom,
     unsigned long balloon;
     int err;
 
+    virCheckFlags(VIR_DOMAIN_XML_SECURE |
+                  VIR_DOMAIN_XML_INACTIVE |
+                  VIR_DOMAIN_XML_UPDATE_CPU, NULL);
+
     qemuDriverLock(driver);
     vm = virDomainFindByUUID(&driver->domains, dom->uuid);