summary refs log tree commit diff stats
path: root/include/hw/rtc/mc146818rtc.h
diff options
context:
space:
mode:
authorPierre Morel <pmorel@linux.ibm.com>2023-10-16 20:39:07 +0200
committerThomas Huth <thuth@redhat.com>2023-10-20 07:16:53 +0200
commitc809bbc8e98cf7fa254fac91084ade0a22877dec (patch)
tree91eb2c24f2632769869b09be6446a11edaa69701 /include/hw/rtc/mc146818rtc.h
parent5de1aff2555275ef182197eddcadb276364ace38 (diff)
downloadfocaccia-qemu-c809bbc8e98cf7fa254fac91084ade0a22877dec.tar.gz
focaccia-qemu-c809bbc8e98cf7fa254fac91084ade0a22877dec.zip
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>
Diffstat (limited to 'include/hw/rtc/mc146818rtc.h')
0 files changed, 0 insertions, 0 deletions