mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-03 18:35:19 +00:00
qemu: Explain why mdevs are assumed to be PCI Express
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
adf846d3c9
commit
2feb2fe251
@ -645,6 +645,11 @@ qemuDomainDeviceCalculatePCIConnectFlags(virDomainDeviceDefPtr dev,
|
||||
return pcieFlags;
|
||||
}
|
||||
|
||||
/* mdevs don't have corresponding files in /sys that we can poke to
|
||||
* try and figure out whether they are legacy PCI or PCI Express, so
|
||||
* the logic below would never work; instead, we just go ahead and
|
||||
* assume they're PCI Express. This is a very reasonable assumption,
|
||||
* as all current mdev-capable devices are indeed PCI Express */
|
||||
if (hostdev->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_MDEV)
|
||||
return pcieFlags;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user