]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add capability for virtio-scsi iothreads
authorJohn Ferlan <jferlan@redhat.com>
Wed, 20 Apr 2016 18:43:04 +0000 (14:43 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 3 May 2016 18:08:05 +0000 (14:08 -0400)
commite2faa97672e8c330beab91d14e1744db2df4bba7
tree8c384f430394ddea0ecf988c9c2df5fdb9d8e8d7
parent8fee0bb7417b85ea89350769c6e7e615111aecdc
qemu: Add capability for virtio-scsi iothreads

An iothread for virtio-scsi is a property of the controller. Add a lookup
of the 'virtio-scsi-pci' and 'virtio-scsi-ccw' device properties and parse
the output.  For both, support for the iothread was added in qemu 2.4
while support for virtio-scsi in general was added in qemu 1.4.

Modify the various mock capabilities replies (by hand) to reflect the
when virtio-scsi was supported and then specifically when the iothread
property was added. For versions prior to 1.4, use the no device error
return for virtio-scsi. For versions 1.4 to before 2.4, add some data
for virtio-scsi-pci even though it isn't complete we're not looking for
anything specific there anyway. For 2.4 to 2.6, add a more complete reply.

Signed-off-by: John Ferlan <jferlan@redhat.com>
15 files changed:
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_1.2.2-1.replies
tests/qemucapabilitiesdata/caps_1.3.1-1.replies
tests/qemucapabilitiesdata/caps_1.4.2-1.replies
tests/qemucapabilitiesdata/caps_1.5.3-1.replies
tests/qemucapabilitiesdata/caps_1.6.0-1.replies
tests/qemucapabilitiesdata/caps_1.6.50-1.replies
tests/qemucapabilitiesdata/caps_2.1.1-1.replies
tests/qemucapabilitiesdata/caps_2.4.0-1.caps
tests/qemucapabilitiesdata/caps_2.4.0-1.replies
tests/qemucapabilitiesdata/caps_2.5.0-1.caps
tests/qemucapabilitiesdata/caps_2.5.0-1.replies
tests/qemucapabilitiesdata/caps_2.6.0-1.caps
tests/qemucapabilitiesdata/caps_2.6.0-1.replies