On 26/09/2023 14.15, Nina Schoetterl-Glausch wrote:
From: Pierre Morel <pmo...@linux.ibm.com>

S390 adds two new SMP levels, drawers and books to the CPU
topology.
S390 CPUs have specific topology features like dedication and
entitlement. These indicate to the guest information on host
vCPU scheduling and help the guest make better scheduling decisions.

Let us provide the SMP properties with books and drawers levels
and S390 CPU with dedication and entitlement,

Add machine-common.json so we can later include it in
machine-target.json also.

Signed-off-by: Pierre Morel <pmo...@linux.ibm.com>
Reviewed-by: Nina Schoetterl-Glausch <n...@linux.ibm.com>
Co-developed-by: Nina Schoetterl-Glausch <n...@linux.ibm.com>
Signed-off-by: Nina Schoetterl-Glausch <n...@linux.ibm.com>
---
  qapi/machine-common.json            | 21 +++++++++++++
  qapi/machine.json                   | 17 +++++++++-
  qapi/qapi-schema.json               |  1 +
  include/hw/boards.h                 | 10 +++++-
  include/hw/qdev-properties-system.h |  4 +++
  target/s390x/cpu.h                  |  6 ++++
  hw/core/machine-smp.c               | 48 ++++++++++++++++++++++++-----
  hw/core/machine.c                   |  4 +++
  hw/core/qdev-properties-system.c    | 13 ++++++++
  hw/s390x/s390-virtio-ccw.c          |  4 +++
  softmmu/vl.c                        |  6 ++++
  target/s390x/cpu.c                  |  7 +++++
  qapi/meson.build                    |  1 +
  qemu-options.hx                     |  7 +++--
  14 files changed, 138 insertions(+), 11 deletions(-)
  create mode 100644 qapi/machine-common.json

Reviewed-by: Thomas Huth <th...@redhat.com>


Reply via email to