{
size_t i;
- if (def->niothreadids == 0)
- return 0;
-
for (i = 0; i < def->niothreadids; i++) {
g_autoptr(virJSONValue) props = NULL;
const virDomainIOThreadIDDef *iothread = def->iothreadids[i];
return -1;
}
+ if (def->defaultIOThread) {
+ g_autoptr(virJSONValue) props = NULL;
+
+ if (qemuMonitorCreateObjectProps(&props, "main-loop", "main-loop",
+ "k:thread-pool-min", def->defaultIOThread->thread_pool_min,
+ "k:thread-pool-max", def->defaultIOThread->thread_pool_max,
+ NULL) < 0)
+ return -1;
+
+ if (qemuBuildObjectCommandlineFromJSON(cmd, props, qemuCaps) < 0)
+ return -1;
+ }
+
return 0;
}
-object '{"qom-type":"iothread","id":"iothread1"}' \
-object '{"qom-type":"iothread","id":"iothread3"}' \
-object '{"qom-type":"iothread","id":"iothread5"}' \
+-object '{"qom-type":"main-loop","id":"main-loop","thread-pool-min":8,"thread-pool-max":16}' \
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
-display none \
-no-user-config \