]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test_driver: Introduce testIOThreadInfo and generate IOThread infos
authorLuke Yue <lukedyue@gmail.com>
Wed, 15 Sep 2021 15:30:23 +0000 (23:30 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Sep 2021 11:41:11 +0000 (13:41 +0200)
commit6650d14f6c143b06b893f421219d80945c3893f3
tree784e6d0ca3c082c13e9e4bf7a5da7e81439f4ff4
parentcb3033776fc3a6d482e67bc34cfd0e28e8901ae8
test_driver: Introduce testIOThreadInfo and generate IOThread infos

Introduce testIOThreadInfo to store IOThread infos: iothread_id,
poll_max_ns, poll_grow and poll_shrink for future usage.

Add an example of IOThread configuration to testdomfc4.xml, we also want
to generate default testIOThreadInfo for the IOThread configured in the
xml, so introduce testDomainGenerateIOThreadInfos, the values are taken
from QEMU.

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