• G
    qemu: call usb search function for hostdev initialization and hotplug · 05abd150
    Guannan Ren 提交于
    src/qemu/qemu_hostdev.c:
    refactor qemuPrepareHostdevUSBDevices function, make it focus on
    adding usb device to activeUsbHostdevs after check. After that,
    the usb hotplug function qemuDomainAttachHostDevice also could use
    it.
    expand qemuPrepareHostUSBDevices to perform the usb search,
    rollback on failure.
    
    src/qemu/qemu_hotplug.c:
    If there are multiple usb devices available with same vendorID and productID,
    but with different value of "bus, device", we give an error to let user
    use <address> to specify the desired one.
    05abd150
qemu_hostdev.c 28.7 KB