[libvirt] [PATCH v3 06/30] virHostdevPreparePCIDevices: Separate out function body