[libvirt] [PATCH v14 24/49] extract general code from qemuPrepareHostUSBDevices