From: Shivaprasad G Bhat Date: Wed, 15 Jun 2016 09:57:14 +0000 (+0000) Subject: qemu: Check for VFIO too where legacy passthrough is checked X-Git-Tag: v2.0.0-rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c2dfb8aaab995be33c8b6382360b9c348ed0e7;p=thirdparty%2Flibvirt.git qemu: Check for VFIO too where legacy passthrough is checked 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 --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 713a1cd4b5..dd3d624990 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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;