From: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
To: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Cc: qemu-s390x mailing list <qemu-s390x@nongnu.org>,
Thomas Huth <thuth@redhat.com>,
Daniel Berrange <berrange@redhat.com>,
qemu-devel mailing list <qemu-devel@nongnu.org>,
Hendrik Brueckner <brueckner@linux.ibm.com>,
"<Shalini Chellathurai Saroja" <shalini@linux.ibm.com>
Subject: Re: [PATCH v4 2/4] hw/s390x: add Control-Program Identification to QOM
Date: Mon, 05 May 2025 09:27:21 +0200 [thread overview]
Message-ID: <86795ad321003348e05852f470f4df57@linux.ibm.com> (raw)
In-Reply-To: <af38cbebea53bea3e06537ec69c25a2a3d36577c.camel@linux.ibm.com>
On 2025-04-28 14:01, Nina Schoetterl-Glausch wrote:
> On Thu, 2025-04-10 at 17:09 +0200, Shalini Chellathurai Saroja wrote:
>> Add Control-Program Identification data to the QEMU Object
>> Model (QOM), along with the timestamp in which the data was received.
>>
>> Example:
>> virsh # qemu-monitor-command vm --pretty '{
>> "execute": "qom-get",
>> "arguments": {
>> "path": "/machine/sclp/s390-sclp-event-facility/sclpcpi",
>> "property": "control-program-id" }}'
>> {
>> "return": {
>> "timestamp": 1742390410685762000,
>> "system-level": 74872343805430528,
>> "sysplex-name": "PLEX ",
>> "system-name": "TESTVM ",
>> "system-type": "LINUX "
>> },
>> "id": "libvirt-15"
>> }
>>
>> Signed-off-by: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
>> ---
>> hw/s390x/sclpcpi.c | 39 +++++++++++++++++++++
>> include/hw/s390x/event-facility.h | 9 +++++
>> qapi/machine.json | 58
>> +++++++++++++++++++++++++++++++
>> 3 files changed, 106 insertions(+)
>
> [...]
>
>> --- a/include/hw/s390x/event-facility.h
>> +++ b/include/hw/s390x/event-facility.h
>> @@ -199,9 +199,18 @@ typedef struct SCLPEventCPI SCLPEventCPI;
>> OBJECT_DECLARE_TYPE(SCLPEventCPI, SCLPEventCPIClass,
>> SCLP_EVENT_CPI)
>>
>> +typedef struct ControlProgramId {
>> + uint8_t system_type[8];
>> + uint8_t system_name[8];
>> + uint64_t system_level;
>> + uint8_t sysplex_name[8];
>> + uint64_t timestamp;
>> +} ControlProgramId;
>> +
>> struct SCLPEventCPI {
>> DeviceState qdev;
>> SCLPEvent event;
>> + ControlProgramId cpi;
>
> Now that this struct exists I would go ahead and inline
> ControlProgramId.
Ok, I will do so, thank you.
>
>> };
>>
>> #define TYPE_SCLP_EVENT_FACILITY "s390-sclp-event-facility"
>
> [...]
--
Mit freundlichen Grüßen / Kind regards
Shalini Chellathurai Saroja
Software Developer
Linux on IBM Z & KVM Development
IBM Deutschland Research & Development GmbH
Dept 1419, Schoenaicher Str. 220, 71032 Boeblingen
Vorsitzender des Aufsichtsrats: Wolfgang Wendt
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht
Stuttgart, HRB 243294
next prev parent reply other threads:[~2025-05-05 7:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 15:09 [PATCH v4 0/4] Add SCLP event type CPI Shalini Chellathurai Saroja
2025-04-10 15:09 ` [PATCH v4 1/4] hw/s390x: add " Shalini Chellathurai Saroja
2025-04-28 9:22 ` Janis Schoetterl-Glausch
2025-04-29 9:20 ` Nina Schoetterl-Glausch
2025-05-05 6:58 ` Shalini Chellathurai Saroja
2025-04-10 15:09 ` [PATCH v4 2/4] hw/s390x: add Control-Program Identification to QOM Shalini Chellathurai Saroja
2025-04-28 12:01 ` Nina Schoetterl-Glausch
2025-05-05 7:27 ` Shalini Chellathurai Saroja [this message]
2025-04-30 10:34 ` Thomas Huth
2025-05-05 7:42 ` Shalini Chellathurai Saroja
2025-04-10 15:09 ` [PATCH v4 3/4] hw/s390x: support migration of CPI data Shalini Chellathurai Saroja
2025-04-10 15:09 ` [PATCH v4 4/4] hw/s390x: compat handling for backward migration Shalini Chellathurai Saroja
2025-04-28 12:05 ` Nina Schoetterl-Glausch
2025-05-05 8:54 ` Shalini Chellathurai Saroja
2025-05-06 6:39 ` Nina Schoetterl-Glausch
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=86795ad321003348e05852f470f4df57@linux.ibm.com \
--to=shalini@linux.ibm.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=thuth@redhat.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).