]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: use vfio-pci on commandline when appropriate
authorLaine Stump <laine@laine.org>
Thu, 25 Apr 2013 11:58:37 +0000 (07:58 -0400)
committerLaine Stump <laine@laine.org>
Fri, 26 Apr 2013 01:28:10 +0000 (21:28 -0400)
commit731b0f36f13155c47e5e712f261e935c9400d137
tree0971bebe7882f0ada75306869e5edcc244faf208
parentc4f63ef080d71508a040b25bb7500287acd5f5ce
qemu: use vfio-pci on commandline when appropriate

The device option for vfio-pci is nearly identical to that for
pci-assign - only the configfd parameter isn't supported (or needed).

Checking for presence of the bootindex parameter is done separately
from constructing the commandline, similar to how it is done for
pci-assign.

This patch contains tests to check for proper commandline
construction. It also includes tests for parser-formatter-parser
roundtrips (xml2xml), because those tests use the same data files, and
would have failed had they been included before now.

qemu: xml/args tests for VFIO hostdev and <interface type='hostdev'/>

These should be squashed in with the patch that adds commandline
handling of vfio (they would fail at any earlier time).
src/qemu/qemu_command.c
src/qemu/qemu_hotplug.c
tests/qemuxml2argvdata/qemuxml2argv-hostdev-vfio.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-hostdev-vfio.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-net-hostdev-vfio.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-net-hostdev-vfio.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c