]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Check for VFIO too where legacy passthrough is checked
authorShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Wed, 15 Jun 2016 09:57:14 +0000 (09:57 +0000)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 24 Jun 2016 12:59:04 +0000 (14:59 +0200)
On PPC the legacy passthrough is not supported and only
VFIO is supported. So, the checks at places to confirm if the
host is passthrough capable checks only legacy, fix it. This
is seen at only one place now.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
src/qemu/qemu_driver.c

index 713a1cd4b5e76298512193a3cf689dcd277cd70b..dd3d624990af12bf87416a52241adc46ebe7af85 100644 (file)
@@ -18453,7 +18453,8 @@ qemuConnectGetDomainCapabilities(virConnectPtr conn,
 
     cfg = virQEMUDriverGetConfig(driver);
 
-    if (qemuHostdevHostSupportsPassthroughLegacy())
+    if (qemuHostdevHostSupportsPassthroughLegacy() ||
+        qemuHostdevHostSupportsPassthroughVFIO())
         virttype = VIR_DOMAIN_VIRT_KVM;
     else
         virttype = VIR_DOMAIN_VIRT_QEMU;