]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Don't detach devices if passthrough doesn't work
authorJincheng Miao <jmiao@redhat.com>
Thu, 16 Jan 2014 08:59:50 +0000 (16:59 +0800)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 20 Jan 2014 12:58:04 +0000 (13:58 +0100)
commitdf8022721ef09b2e0bd06e16c7d45ff99034f761
treed36c1ad51314b0a9ddb6459523b5e59437517182
parentd8ab981bdd137f15675ee0d101abeabf42680cc1
qemu: Don't detach devices if passthrough doesn't work

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

If none (KVM, VFIO) of the supported PCI passthrough methods is known to
work on a host, it's better to fail right away with a nice error message
rather than letting attachment fail with a more cryptic message such as

    Failed to bind PCI device '0000:07:05.0' to vfio-pci: No such device

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_driver.c