testQemuMonitorCPUInfo(const void *opaque)
{
const struct testCPUInfoData *data = opaque;
- virDomainObj *vm = NULL;
g_autofree char *queryCpusFile = NULL;
g_autofree char *queryHotpluggableFile = NULL;
g_autofree char *dataFile = NULL;
if (qemuMonitorTestAddItem(test, "query-cpus-fast", queryCpusStr) < 0)
goto cleanup;
- vm = qemuMonitorTestGetDomainObj(test);
- if (!vm)
- goto cleanup;
-
rc = qemuMonitorGetCPUInfo(qemuMonitorTestGetMonitor(test),
&vcpus, data->maxvcpus, true);