You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/include/hw/s390x
Shalini Chellathurai Saroja f345978f24 hw/s390x: add Control-Program Identification to QOM
Add Control-Program Identification (CPI) data to the QEMU Object
Model (QOM), along with the timestamp in which the data was received
as shown below.

virsh # qemu-monitor-command vm --pretty '{"execute":"qom-list",
"arguments":{"path":"/machine/sclp/s390-sclp-event-facility/sclpcpi"}}'
{
  "return": [
    [...]
    {
      "name": "system_level",
      "type": "uint64"
    },
    {
      "name": "system_name",
      "type": "string"
    },
    {
      "name": "system_type",
      "type": "string"
    },
    {
      "name": "timestamp",
      "type": "uint64"
    },
    {
      "name": "sysplex_name",
      "type": "string"
    }
  ],
  "id": "libvirt-14"
}

Example CPI data:
virsh # qemu-monitor-command vm --pretty '{"execute":"qom-get",
"arguments":{"path":"/machine/sclp/s390-sclp-event-facility/sclpcpi",
"property":"system_type"}}'
{
  "return": "LINUX   ",
  "id": "libvirt-18"
}
virsh # qemu-monitor-command vm --pretty '{"execute":"qom-get",
"arguments":{"path":"/machine/sclp/s390-sclp-event-facility/sclpcpi",
"property":"system_name"}}'
{
  "return": "TESTVM  ",
  "id": "libvirt-19"
}
virsh # qemu-monitor-command vm --pretty '{"execute":"qom-get",
"arguments":{"path":"/machine/sclp/s390-sclp-event-facility/sclpcpi",
"property":"sysplex_name"}}'
{
  "return": "PLEX    ",
  "id": "libvirt-20"
}
virsh # qemu-monitor-command vm --pretty '{"execute":"qom-get",
"arguments":{"path":"/machine/sclp/s390-sclp-event-facility/sclpcpi",
"property":"system_level"}}'
{
  "return": 74872343805430528,
  "id": "libvirt-21"
}
virsh # qemu-monitor-command vm --pretty '{"execute":"qom-get",
"arguments":{"path":"/machine/sclp/s390-sclp-event-facility/sclpcpi",
"property":"timestamp"}}'
{
  "return": 1748866753433923000,
  "id": "libvirt-22"
}

Signed-off-by: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
Reviewed-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Message-ID: <20250616140107.990538-3-shalini@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
3 days ago
..
ipl s390x: Rebuild IPLB for SCSI device directly from DIAG308 8 months ago
3270-ccw.h Use OBJECT_DECLARE_TYPE when possible 5 years ago
adapter.h kvm: move target-dependent interrupt routing out of kvm-all.c 1 year ago
ap-bridge.h hw/vfio/ap: Storing event information for an AP configuration change event 2 weeks ago
ap-device.h ap-device: Rename AP_DEVICE_TYPE to TYPE_AP_DEVICE 5 years ago
cpu-topology.h qapi: make s390x specific CPU commands unconditionally available 1 month ago
css-bridge.h hw/s390x/css-bridge: Remove the "css_dev_path" property 6 months ago
css.h include/hw/s390x: Remove ifndef CONFIG_USER_ONLY in css.h 2 months ago
ebcdic.h
event-facility.h hw/s390x: add Control-Program Identification to QOM 3 days ago
ioinst.h s390x/css: fix PMCW invalid mask 3 years ago
s390-ccw.h s390x/css: Make S390CCWDeviceClass::realize return bool 1 year ago
s390-pci-bus.h s390x/pci: add support for guests that request direct mapping 4 months ago
s390-pci-clp.h s390x/pci: indicate QEMU supports relaxed translation for passthrough 4 months ago
s390-pci-inst.h include: Rename sysemu/ -> system/ 6 months ago
s390-pci-kvm.h s390x/pci: enable adapter event notification for interpreted devices 3 years ago
s390-pci-vfio.h s390x/pci: add routine to get host function handle from CLP info 3 years ago
s390-virtio-ccw.h hw/s390x: add SCLP event type CPI 3 days ago
s390_flic.h hw/intc/s390_flic: Remove the obsolete migration_enabled flag 2 months ago
sclp.h s390x: Introduce a SCLPDevice pointer under the machine 1 year ago
storage-attributes.h hw/s390x/s390-stattrib: Remove the old migration_enabled flag 2 months ago
storage-keys.h hw/s390x/ccw: Have CCW machine implement a qmp_dump_skeys() callback 2 months ago
tod.h target/s390x: start moving TCG-only code to tcg/ 4 years ago
vfio-ccw.h vfio: Rename vfio-common.h to vfio-device.h 2 months ago