]> git.proxmox.com Git - mirror_qemu.git/commit - MAINTAINERS
s390x/cpu topology: add topology entries on CPU hotplug
authorPierre Morel <pmorel@linux.ibm.com>
Mon, 16 Oct 2023 18:39:07 +0000 (20:39 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 20 Oct 2023 05:16:53 +0000 (07:16 +0200)
commitc809bbc8e98cf7fa254fac91084ade0a22877dec
tree91eb2c24f2632769869b09be6446a11edaa69701
parent5de1aff2555275ef182197eddcadb276364ace38
s390x/cpu topology: add topology entries on CPU hotplug

The topology information are attributes of the CPU and are
specified during the CPU device creation.

On hot plug we:
- calculate the default values for the topology for drawers,
  books and sockets in the case they are not specified.
- verify the CPU attributes
- check that we have still room on the desired socket

The possibility to insert a CPU in a mask is dependent on the
number of cores allowed in a socket, a book or a drawer, the
checking is done during the hot plug of the CPU to have an
immediate answer.

If the complete topology is not specified, the core is added
in the physical topology based on its core ID and it gets
defaults values for the modifier attributes.

This way, starting QEMU without specifying the topology can
still get some advantage of the CPU topology.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Co-developed-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Message-ID: <20231016183925.2384704-4-nsg@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
MAINTAINERS
hw/s390x/cpu-topology.c [new file with mode: 0644]
hw/s390x/meson.build
hw/s390x/s390-virtio-ccw.c
include/hw/s390x/cpu-topology.h [new file with mode: 0644]