[libvirt] [PATCH v14 11/49] extract general code from qemuPrepareHostdevPCIDevices