Consistently with all other CPU definitions, domain capabilities report
host-model CPU as a base model and additional list of features. Getting
all features supported on a host is possible by passing the host-model
CPU definition to hypervisor-cpu-baseline with --features option. But
while this is very easy in virsh (domain capabilities can by directly
piped to hypervisor-cpu-baseline), doing this via API is more
complicated. The relevant part of the domain XML needs to be copied into
a new XML document, formatted and passed to
virConnectBaselineHypervisorCPU.

This series adds the ability to expand CPU features directly in the
domain capabilities XML without having to call another API.

Jiri Denemark (4):
  Introduce EXPAND_CPU_FEATURES flag for domain capabilities
  qemu: Implement
    VIR_CONNECT_GET_DOMAIN_CAPABILITIES_EXPAND_CPU_FEATURES
  virsh: Add --expand-cpu-features option for domcapabilities
  docs: Clarify host-model description in domain capabilities

 docs/formatdomaincaps.rst        | 4 ++++
 docs/manpages/virsh.rst          | 5 +++++
 include/libvirt/libvirt-domain.h | 2 ++
 src/libvirt-domain.c             | 5 +++++
 src/qemu/qemu_driver.c           | 9 ++++++++-
 tools/virsh-host.c               | 7 +++++++
 6 files changed, 31 insertions(+), 1 deletion(-)

-- 
2.53.0

Reply via email to