[libvirt] [PATCH v3 07/30] virHostdevReAttachPCIDevices: Separate out function body