]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix mdev checking for VFIO support
authorErik Skultety <eskultet@redhat.com>
Wed, 12 Apr 2017 08:46:35 +0000 (10:46 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 12 Apr 2017 10:57:39 +0000 (12:57 +0200)
commitb4c2ac8d56124428d9329643a68625465094c5a7
treebb2de06478eb50ac6a8d9cfe2e3b27a2f315f125
parentc5ca209f5848c68334c06cb2955758bd486fd149
qemu: Fix mdev checking for VFIO support

Commit a4a39d90 added a check that checks for VFIO support with mediated
devices. The problem is that the hostdev preparing functions behave like
a fallthrough if device of that specific type doesn't exist. However,
the check for VFIO support was independent of the existence of a mdev
device which caused the guest to fail to start with any device to be
directly assigned if VFIO was disabled/unavailable in the kernel.
The proposed change first ensures that it makes sense to check for VFIO
support in the first place, and only then performs the VFIO support check
itself.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1441291

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_hostdev.c