提交 07901bf2 编写于 作者: M Marc-André Lureau 提交者: Daniel Veillard

PIIX3 USB controller is on function 2

Current code reserves slot 1 function 2 even if there is a user
defined PIIX3 USB controller there.
上级 8be115ff
......@@ -1181,7 +1181,8 @@ qemuAssignDevicePCISlots(virDomainDefPtr def, qemuDomainPCIAddressSetPtr addrs)
* hardcoded slot=1, multifunction device
*/
for (function = 0; function < QEMU_PCI_ADDRESS_LAST_FUNCTION; function++) {
if (function == 1 && (reservedIDE || reservedUSB))
if ((function == 1 && reservedIDE) ||
(function == 2 && reservedUSB))
/* we have reserved this pci address */
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册