[libvirt] [PATCH v13 19/49] extract general code from qemuUpdateActiveUsbHostdevs