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>
cfg = virQEMUDriverGetConfig(driver);
- if (qemuHostdevHostSupportsPassthroughLegacy())
+ if (qemuHostdevHostSupportsPassthroughLegacy() ||
+ qemuHostdevHostSupportsPassthroughVFIO())
virttype = VIR_DOMAIN_VIRT_KVM;
else
virttype = VIR_DOMAIN_VIRT_QEMU;