]> xenbits.xensource.com Git - libvirt.git/commitdiff
Revert "Error out on missing machine type in machine configs"
authorJán Tomko <jtomko@redhat.com>
Thu, 25 Feb 2016 11:53:35 +0000 (12:53 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 26 Feb 2016 08:47:45 +0000 (09:47 +0100)
Revert commit 55e6d8cd9eac7eb2aaa4d221585e9402cf7269d5.

This fix for https://bugzilla.redhat.com/show_bug.cgi?id=1267256
unconditionally required a machine type for all machine types
even though qemu is the only emulator using them.

Revert it to fix persistent configs for drivers with no machine type:
https://www.redhat.com/archives/libvir-list/2016-February/msg01228.html

src/conf/domain_conf.c

index 3b15cb46d9eccde86aeafc860c94aa6db95388b7..79758d42d8f70ba4489cf9ad32fdd8697757ee17 100644 (file)
@@ -14851,12 +14851,6 @@ virDomainDefParseXML(xmlDocPtr xml,
             goto error;
         }
         VIR_FREE(capsdata);
-    } else {
-        if (!def->os.machine) {
-            virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                           _("Missing machine type"));
-            goto error;
-        }
     }
 
     /* Extract domain name */