[libvirt] [PATCH v3 2/3] qemu: extract common PCI handling functions