]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add support for specifying CPU "dies" parameter
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 16 Dec 2019 11:16:51 +0000 (11:16 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 16 Jan 2020 15:11:42 +0000 (15:11 +0000)
commitfbf27730a36da573b1065c179f4d96b9a751f22f
treefc18558b24e811e48c591d2e549d8335a7917b5f
parentbd04d63ad97c21b6955710e6473a502f49816a3c
conf: add support for specifying CPU "dies" parameter

Recently CPU hardware vendors have started to support a new structure
inside the CPU package topology known as a "die". Thus the hierarchy
is now:

  sockets > dies > cores > threads

This adds support for "dies" in the XML parser, with the value
defaulting to 1 if not specified for backwards compatibility.

For example a system with 64 logical CPUs might report

   <topology sockets="4" dies="2" cores="4" threads="2"/>

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
98 files changed:
docs/formatcaps.html.in
docs/formatdomain.html.in
docs/schemas/cputypes.rng
src/bhyve/bhyve_command.c
src/conf/cpu_conf.c
src/conf/cpu_conf.h
src/conf/domain_conf.c
src/cpu/cpu.c
src/libxl/libxl_capabilities.c
src/qemu/qemu_command.c
src/vmx/vmx.c
tests/cputestdata/x86_64-host+guest,model486-result.xml
tests/cputestdata/x86_64-host+guest,models-result.xml
tests/cputestdata/x86_64-host+guest-result.xml
tests/cputestdata/x86_64-host+guest.xml
tests/cputestdata/x86_64-host+host-model-nofallback.xml
tests/cputestdata/x86_64-host-Haswell-noTSX+Haswell,haswell-result.xml
tests/cputestdata/x86_64-host-Haswell-noTSX+Haswell-noTSX,haswell-result.xml
tests/cputestdata/x86_64-host-Haswell-noTSX+Haswell-noTSX-result.xml
tests/cputestdata/x86_64-host-worse+guest-result.xml
tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-conf.xml
tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-live.xml
tests/qemuhotplugtestcpus/ppc64-modern-individual-result-conf.xml
tests/qemuhotplugtestcpus/ppc64-modern-individual-result-live.xml
tests/qemuhotplugtestcpus/x86-modern-bulk-result-conf.xml
tests/qemuhotplugtestcpus/x86-modern-bulk-result-live.xml
tests/qemuhotplugtestcpus/x86-modern-individual-add-result-conf.xml
tests/qemuhotplugtestcpus/x86-modern-individual-add-result-live.xml
tests/qemuhotplugtestcpus/x86-old-bulk-result-conf.xml
tests/qemuhotplugtestcpus/x86-old-bulk-result-live.xml
tests/qemuxml2argvdata/cpu-hotplug-granularity.xml
tests/qemuxml2argvdata/cpu-hotplug-startup.xml
tests/qemuxml2argvdata/cpu-numa-disjoint.xml
tests/qemuxml2argvdata/cpu-numa-disordered.xml
tests/qemuxml2argvdata/cpu-numa-memshared.xml
tests/qemuxml2argvdata/cpu-numa-no-memory-element.xml
tests/qemuxml2argvdata/cpu-numa1.xml
tests/qemuxml2argvdata/cpu-numa2.xml
tests/qemuxml2argvdata/cpu-numa3.xml
tests/qemuxml2argvdata/cpu-topology1.xml
tests/qemuxml2argvdata/cpu-topology2.xml
tests/qemuxml2argvdata/cpu-topology3.xml
tests/qemuxml2argvdata/fd-memory-no-numa-topology.xml
tests/qemuxml2argvdata/fd-memory-numa-topology.xml
tests/qemuxml2argvdata/fd-memory-numa-topology2.xml
tests/qemuxml2argvdata/fd-memory-numa-topology3.xml
tests/qemuxml2argvdata/graphics-spice-timeout.xml
tests/qemuxml2argvdata/hugepages-nvdimm.xml
tests/qemuxml2argvdata/memfd-memory-default-hugepage.xml
tests/qemuxml2argvdata/memfd-memory-numa.xml
tests/qemuxml2argvdata/memory-align-fail.xml
tests/qemuxml2argvdata/memory-hotplug-dimm-addr.xml
tests/qemuxml2argvdata/memory-hotplug-dimm.xml
tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.xml
tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.xml
tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.xml
tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.xml
tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.xml
tests/qemuxml2argvdata/memory-hotplug-nvdimm.xml
tests/qemuxml2argvdata/memory-hotplug.xml
tests/qemuxml2argvdata/numad-auto-memory-vcpu-cpuset.xml
tests/qemuxml2argvdata/numad-auto-memory-vcpu-no-cpuset-and-placement.xml
tests/qemuxml2argvdata/numad-auto-vcpu-no-numatune.xml
tests/qemuxml2argvdata/numad-auto-vcpu-static-numatune-no-nodeset.xml
tests/qemuxml2argvdata/numad-auto-vcpu-static-numatune.xml
tests/qemuxml2argvdata/numad-static-memory-auto-vcpu.xml
tests/qemuxml2argvdata/numad-static-vcpu-no-numatune.xml
tests/qemuxml2argvdata/numad.xml
tests/qemuxml2argvdata/numatune-auto-nodeset-invalid.xml
tests/qemuxml2argvdata/numatune-memory-invalid-nodeset.xml
tests/qemuxml2argvdata/numatune-memory.xml
tests/qemuxml2argvdata/pci-expander-bus-bad-machine.xml
tests/qemuxml2argvdata/pci-expander-bus.xml
tests/qemuxml2argvdata/pcie-expander-bus-bad-bus.xml
tests/qemuxml2argvdata/pcie-expander-bus-bad-machine.xml
tests/qemuxml2argvdata/pcie-expander-bus.xml
tests/qemuxml2argvdata/pseries-default-phb-numa-node.xml
tests/qemuxml2argvdata/pseries-phb-numa-node.xml
tests/qemuxml2argvdata/smp.xml
tests/qemuxml2xmloutdata/cpu-numa-disjoint.xml
tests/qemuxml2xmloutdata/cpu-numa-disordered.xml
tests/qemuxml2xmloutdata/cpu-numa-memshared.xml
tests/qemuxml2xmloutdata/cpu-numa-no-memory-element.xml
tests/qemuxml2xmloutdata/cpu-numa1.xml
tests/qemuxml2xmloutdata/cpu-numa2.xml
tests/qemuxml2xmloutdata/graphics-spice-timeout.xml
tests/qemuxml2xmloutdata/memory-hotplug-dimm.xml
tests/qemuxml2xmloutdata/memory-hotplug.xml
tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-cpuset.xml
tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-no-cpuset-and-placement.xml
tests/qemuxml2xmloutdata/numad-auto-vcpu-no-numatune.xml
tests/qemuxml2xmloutdata/numad-static-vcpu-no-numatune.xml
tests/qemuxml2xmloutdata/pci-expander-bus.xml
tests/qemuxml2xmloutdata/pcie-expander-bus.xml
tests/qemuxml2xmloutdata/pseries-phb-numa-node.xml
tests/qemuxml2xmloutdata/smp.xml
tests/vmx2xmldata/vmx2xml-esx-in-the-wild-8.xml
tests/vmx2xmldata/vmx2xml-esx-in-the-wild-9.xml