[libvirt] [PATCH v2 15/39] virHostdevReAttachPCIDevices: Separate out function body