mirror of https://gitee.com/openkylin/libvirt.git
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
This commit is contained in:
parent
8540dadbe9
commit
06973f7065
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue