[libvirt] [PATCH v13 14/49] extract general code from qemuDomainReAttachHostdevDevices