提交 06973f70 编写于 作者: R Rolf Eike Beer 提交者: Daniel P. Berrange

Fix USB hotplug device string in QEMU driver

The USB hotplug method was mistakenly generating a PCI address
string

* src/qemu/qemu_driver.c: Fix USB hotplug device string
上级 8540dadb
......@@ -5927,7 +5927,7 @@ static int qemudDomainAttachHostUsbDevice(struct qemud_driver *driver,
char *devstr = NULL;
if ((qemuCmdFlags & QEMUD_CMD_FLAG_DEVICE) &&
!(devstr = qemuBuildPCIHostdevDevStr(hostdev)))
!(devstr = qemuBuildUSBHostdevDevStr(hostdev)))
goto error;
if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs+1) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册