From 99c2dfb8aaab995be33c8b6382360b9c348ed0e7 Mon Sep 17 00:00:00 2001 From: Shivaprasad G Bhat Date: Wed, 15 Jun 2016 09:57:14 +0000 Subject: [PATCH] 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 --- src/qemu/qemu_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;