mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
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 <sbhat@linux.vnet.ibm.com>
This commit is contained in:
parent
290f2adf46
commit
99c2dfb8aa
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user