提交 2feb2fe2 编写于 作者: A Andrea Bolognani

qemu: Explain why mdevs are assumed to be PCI Express

Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
上级 adf846d3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册