Upstream (thanks: Jiri Denemark) has recently implemented two new CPU-related APIs: virConnectCompareHypervisorCPU() virConnectBaselineHypervisorCPU() As part of: https://bugzilla.redhat.com/show_bug.cgi?id=1559832 -- [RFC] Fine-grained API to validate if a given CPU model and flags are supported by QEMU / KVM However, building their Python bindings fail: $> ~/build/libvirt/run python setup.py build running build /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt /usr/bin/python generator.py libvirt /home/kashyapc/tinker-space/libvirt/docs/libvirt-api.xml Found 433 functions in /home/kashyapc/tinker-space/libvirt/docs/libvirt-api.xml Found 0 functions in libvirt-override-api.xml Generated 353 wrapper functions Missing type converters: char **:1 ERROR: failed virConnectBaselineHypervisorCPU error: command '/usr/bin/python' failed with exit status 1
Sent upstream for review: https://www.redhat.com/archives/libvir-list/2018-May/msg02411.html
Fixed by commit 0f3f82e8be5a814c42b1dcf2def1884a505e6fa8 Refs: v4.3.0-8-g0f3f82e Author: Jiri Denemark <jdenemar> AuthorDate: Thu May 31 17:14:25 2018 +0200 Commit: Jiri Denemark <jdenemar> CommitDate: Fri Jun 1 08:16:48 2018 +0200 Add support for virConnectBaselineHypervisorCPU The python bindings for this API cannot be generated because are generator is not capable of handling string arrays (char **) parameters. https://bugzilla.redhat.com/show_bug.cgi?id=1584676 Signed-off-by: Jiri Denemark <jdenemar> Reviewed-by: Ján Tomko <jtomko>