virDomainSetIOThreadParams can set thread_pool_min and thread_pool_max at the same time
Description of problem
Due to the way that thread_pool_min and thread_pool_max are set at the monitor level (each is set in a separate call), it may not be possible to set min/max value (due to current values). However, the public API accepts both of these values. Therefore, we need a logic that gets the current values and sets either min or max value first.
Steps to reproduce
virsh # iothreadset fedora 1 --thread-pool-min 1 --thread-pool-max 2
virsh # iothreadset fedora 1 --thread-pool-min 3 --thread-pool-max 4
error: internal error: unable to execute QEMU command 'qom-set': bad thread-pool-min/thread-pool-max values
Additional information
Commit 1e8c3525 mentioned this limitation in description of the typedef params, but it's rather wrong and should be treated as a bug.