[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v2 0/5] add new API virConnectGetCPUModelNames



This series adds a new API "virConnectGetCPUModelNames" that allows to
retrieve the list of CPU models known by the hypervisor for a specific
architecture.

This new function is mainly needed by virt-manager to not read
directly the cpu_map.xml file (it could also be different when
accessing a remote daemon).

*v2 main changes
- set a hard limit for the number of CPU models that is possible to
  fetch from a remote server.
- Use VIR_EXPAND_N instead of VIR_REALLOC_N.
- s|1.1.2|1.1.3|

Giuseppe Scrivano (5):
  cpu_models: add new public API
  cpu_models: implement the remote protocol
  cpu_models: add the support for qemu
  cpu_models: add the support for the test protocol
  cpu_models: add Python bindings

 daemon/remote.c                 | 47 ++++++++++++++++++++++++++++++
 include/libvirt/libvirt.h.in    | 18 ++++++++++++
 python/generator.py             |  1 +
 python/libvirt-override-api.xml |  7 +++++
 python/libvirt-override.c       | 56 ++++++++++++++++++++++++++++++++++++
 python/libvirt-override.py      | 11 +++++++
 src/cpu/cpu.c                   | 64 +++++++++++++++++++++++++++++++++++++++++
 src/cpu/cpu.h                   |  3 ++
 src/driver.h                    |  7 +++++
 src/libvirt.c                   | 47 ++++++++++++++++++++++++++++++
 src/libvirt_private.syms        |  1 +
 src/libvirt_public.syms         |  5 ++++
 src/qemu/qemu_driver.c          | 14 +++++++++
 src/remote/remote_driver.c      | 59 +++++++++++++++++++++++++++++++++++++
 src/remote/remote_protocol.x    | 20 ++++++++++++-
 src/remote_protocol-structs     | 11 +++++++
 src/test/test_driver.c          | 16 +++++++++++
 tools/virsh-host.c              | 48 +++++++++++++++++++++++++++++++
 tools/virsh.pod                 |  5 ++++
 19 files changed, 439 insertions(+), 1 deletion(-)

-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]