if (rc == 1)
iothread->set_thread_pool_max = true;
- if (iothread->set_poll_max_ns && iothread->poll_max_ns > INT_MAX) {
- virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
- _("poll-max-ns (%1$llu) must be less than or equal to %2$d"),
- iothread->poll_max_ns, INT_MAX);
- return -1;
- }
-
- if (iothread->set_poll_grow && iothread->poll_grow > INT_MAX) {
- virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
- _("poll-grow (%1$u) must be less than or equal to %2$d"),
- iothread->poll_grow, INT_MAX);
- return -1;
- }
-
- if (iothread->set_poll_shrink && iothread->poll_shrink > INT_MAX) {
- virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
- _("poll-shrink (%1$u) must be less than or equal to %2$d"),
- iothread->poll_shrink, INT_MAX);
- return -1;
- }
-
if (iothread->set_thread_pool_min && iothread->thread_pool_min < -1) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("thread_pool_min (%1$d) must be equal to or greater than -1"),
goto cleanup;
}
- /* Fetch poll values (since QEMU 2.9 ) if available. QEMU
- * stores these values as int64_t's; however, the qapi type
- * is an int. The qapi/misc.json also mis-describes the grow
- * and shrink values as pure add/remove values. The source
- * util/aio-posix.c function aio_poll uses them as a factor
- * or divisor in it's calculation. We will fetch and store
- * them as defined in our structures. */
if (virJSONValueObjectGetNumberUlong(child, "poll-max-ns",
&info->poll_max_ns) == 0 &&
virJSONValueObjectGetNumberUint(child, "poll-grow",