]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Use domain iothreadids to IOThread's 'thread_id'
authorJohn Ferlan <jferlan@redhat.com>
Fri, 10 Apr 2015 13:21:23 +0000 (09:21 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 27 Apr 2015 16:36:35 +0000 (12:36 -0400)
commit8d4614a512440fe62fea0e587ae6317ad98f0364
treeef0d321015bf479804f2607d01671dc5d72c463e
parent93383c1ffa71bae2e304d6ac51cc6329a8786d54
qemu: Use domain iothreadids to IOThread's 'thread_id'

Add 'thread_id' to the virDomainIOThreadIDDef as a means to store the
'thread_id' as returned from the live qemu monitor data.

Remove the iothreadpids list from _qemuDomainObjPrivate and replace with
the new iothreadids 'thread_id' element.

Rather than use the default numbering scheme of 1..number of iothreads
defined for the domain, use the iothreadid's list for the iothread_id

Since iothreadids list keeps track of the iothread_id's, these are
now used in place of the many places where a for loop would "know"
that the ID was "+ 1" from the array element.

The new tests ensure usage of the <iothreadid> values for an exact number
of iothreads and the usage of a smaller number of <iothreadid> values than
iothreads that exist (and usage of the default numbering scheme).
14 files changed:
src/conf/domain_conf.h
src/qemu/qemu_cgroup.c
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
tests/qemuxml2argvdata/qemuxml2argv-iothreads-ids-partial.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-iothreads-ids-partial.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-iothreads-ids.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-iothreads-ids.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c