[libvirt] [PATCH v2 14/39] virHostdevPreparePCIDevices: Separate out function body