unsigned int device_parse_flags = 0;
virDomainObj *vm = NULL;
virDomainDeviceDef *dev = NULL;
- g_autoptr(virCaps) caps = NULL;
g_autoptr(qemuMonitorTest) test_mon = NULL;
qemuDomainObjPrivate *priv = NULL;
virTestLoadFile(result_filename, &result_xml) < 0)
goto cleanup;
- if (!(caps = virQEMUDriverGetCapabilities(&driver, false)))
- goto cleanup;
-
if (test->vm) {
vm = test->vm;
if (!vm->def) {
GHashTable *qmpschema)
{
qemuDomainObjPrivate *priv = NULL;
- virCaps *caps = NULL;
g_autofree char *prefix = NULL;
struct testQemuHotplugCpuData *data = NULL;
if (qemuHotplugCreateObjects(driver.xmlopt, &data->vm, data->xml_dom) < 0)
goto error;
- if (!(caps = virQEMUDriverGetCapabilities(&driver, false)))
- goto error;
-
/* create vm->newDef */
data->vm->persistent = true;
if (virDomainObjSetDefTransient(driver.xmlopt, data->vm, NULL) < 0)
return data;
error:
- virObjectUnref(caps);
testQemuHotplugCpuDataFree(data);
return NULL;
}