qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Shalini Chellathurai Saroja <shalini@linux.ibm.com>,
	qemu-s390x mailing list <qemu-s390x@nongnu.org>
Cc: Daniel Berrange <berrange@redhat.com>,
	qemu-devel mailing list <qemu-devel@nongnu.org>,
	Nina Schoetterl-Glausch <nsg@linux.ibm.com>,
	Hendrik Brueckner <brueckner@linux.ibm.com>
Subject: Re: [PATCH v6 2/3] hw/s390x: add Control-Program Identification to QOM
Date: Tue, 24 Jun 2025 12:17:32 +0200	[thread overview]
Message-ID: <c42f3c49-97f2-4168-bc31-4a9fcb07e243@redhat.com> (raw)
In-Reply-To: <20250616140107.990538-3-shalini@linux.ibm.com>

On 16/06/2025 16.01, Shalini Chellathurai Saroja wrote:
> 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>
> ---
>   hw/s390x/sclpcpi.c                | 74 +++++++++++++++++++++++++++++++
>   include/hw/s390x/event-facility.h |  5 +++
>   2 files changed, 79 insertions(+)

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



  parent reply	other threads:[~2025-06-24 10:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-16 14:01 [PATCH v6 0/3] Add SCLP event type CPI Shalini Chellathurai Saroja
2025-06-16 14:01 ` [PATCH v6 1/3] hw/s390x: add " Shalini Chellathurai Saroja
2025-06-16 14:01 ` [PATCH v6 2/3] hw/s390x: add Control-Program Identification to QOM Shalini Chellathurai Saroja
2025-06-17 17:09   ` Nina Schoetterl-Glausch
2025-06-18  6:35     ` Shalini Chellathurai Saroja
2025-06-24 10:17   ` Thomas Huth [this message]
2025-06-16 14:01 ` [PATCH v6 3/3] hw/s390x: support migration of CPI data Shalini Chellathurai Saroja
2025-06-24 10:25 ` [PATCH v6 0/3] Add SCLP event type CPI Thomas Huth
2025-06-26  8:28   ` Shalini Chellathurai Saroja

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c42f3c49-97f2-4168-bc31-4a9fcb07e243@redhat.com \
    --to=thuth@redhat.com \
    --cc=berrange@redhat.com \
    --cc=brueckner@linux.ibm.com \
    --cc=nsg@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=shalini@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).