The QOM path will be needed by code which is querying the cpu flags via
'qom-get' and thus needs a valid QOM path to the vCPU.
Add it into the private data and transfer from the queried data.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
g_free(priv->type);
g_free(priv->alias);
virJSONValueFree(priv->props);
+ g_free(priv->qomPath);
return;
}
vcpupriv->props = g_steal_pointer(&info[i].props);
vcpupriv->enable_id = info[i].id;
vcpupriv->qemu_id = info[i].qemu_id;
+ g_free(vcpupriv->qomPath);
+ vcpupriv->qomPath = g_steal_pointer(&info[i].qom_path);
if (hotplug && state) {
vcpu->online = info[i].online;
int thread_id;
int node_id;
int vcpus;
+
+ char *qomPath;
};
#define QEMU_DOMAIN_VCPU_PRIVATE(vcpu) \
/* alias of an hotpluggable entry. Entries with alias can be hot-unplugged */
char *alias;
- /* internal for use in the matching code */
char *qom_path;
bool halted;