]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/s390x: add SCLP event type CPI
authorShalini Chellathurai Saroja <shalini@linux.ibm.com>
Mon, 16 Jun 2025 14:01:05 +0000 (16:01 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 25 Jun 2025 15:04:40 +0000 (17:04 +0200)
commit435c758da161448447dc47e678a97b8df434d94c
treedd2768471816b1c34e58a907f0ea714e0959d68c
parent920f067347782e4737d0e4a89692b669b888fe0a
hw/s390x: add SCLP event type CPI

Implement the Service-Call Logical Processor (SCLP) event
type Control-Program Identification (CPI) in QEMU. This
event is used to send CPI identifiers from the guest to the
host. The CPI identifiers are: system type, system name,
system level and sysplex name.

System type: operating system of the guest (e.g. "LINUX   ").
System name: user configurable name of the guest (e.g. "TESTVM  ").
System level: distribution and kernel version, if the system type is Linux
(e.g. 74872343805430528).
Sysplex name: name of the cluster which the guest belongs to (if any)
(e.g. "PLEX").

The SCLP event CPI is supported only from "s390-ccw-virtio-10.1" machine
and higher.

Signed-off-by: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
Reviewed-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250616140107.990538-2-shalini@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/event-facility.c
hw/s390x/meson.build
hw/s390x/s390-virtio-ccw.c
hw/s390x/sclpcpi.c [new file with mode: 0644]
include/hw/s390x/event-facility.h
include/hw/s390x/s390-virtio-ccw.h