]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test_driver: Implement virDomainGetIOThreadInfo
authorLuke Yue <lukedyue@gmail.com>
Wed, 15 Sep 2021 15:30:27 +0000 (23:30 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Sep 2021 11:41:22 +0000 (13:41 +0200)
commit5af7036ec0216259e34c516748614b75c705c3c8
treeaed713898b9097dde4f953c02700d14c486dbe69
parentfac57323fce3143e21c374cdfacd1d605dfb7006
test_driver: Implement virDomainGetIOThreadInfo

If we use test driver on different machines, and use 0 as bitmap_size
for virDomainDriverGetIOThreadsConfig(), we would get different results for
the `CPU Affinity`, because it's depending on the host CPU's bitmap. In
order to get a stable result for testing, use result of
virDomainDefGetVcpus() as bitmap_size instead.

Signed-off-by: Luke Yue <lukedyue@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/test/test_driver.c