From: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
To: Thomas Huth <thuth@redhat.com>
Cc: qemu-s390x mailing list <qemu-s390x@nongnu.org>,
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>,
"<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:42:04 +0200 [thread overview]
Message-ID: <1c53abc29ddb96fee017fba5088e8619@linux.ibm.com> (raw)
In-Reply-To: <17ad2f31-dadb-4b36-b663-7736ac6c1cfe@redhat.com>
On 2025-04-30 12:34, Thomas Huth wrote:
> On 10/04/2025 17.09, 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.
> ...
>> diff --git a/hw/s390x/sclpcpi.c b/hw/s390x/sclpcpi.c
>> index 13589459b1..dcc8bd3245 100644
>> --- a/hw/s390x/sclpcpi.c
>> +++ b/hw/s390x/sclpcpi.c
>> @@ -18,7 +18,10 @@
>> */
>> #include "qemu/osdep.h"
>> +#include "qemu/timer.h"
>> #include "hw/s390x/event-facility.h"
>> +#include "hw/s390x/ebcdic.h"
>> +#include "qapi/qapi-visit-machine.h"
>> typedef struct Data {
>> uint8_t id_format;
>> @@ -58,11 +61,39 @@ static int write_event_data(SCLPEvent *event,
>> EventBufferHeader *evt_buf_hdr)
>> {
>> ControlProgramIdMsg *cpim = container_of(evt_buf_hdr,
>> ControlProgramIdMsg,
>> ebh);
>> + SCLPEventCPI *e = SCLP_EVENT_CPI(event);
>> +
>> + ascii_put(e->cpi.system_type, (char *)cpim->data.system_type, 8);
>> + ascii_put(e->cpi.system_name, (char *)cpim->data.system_name, 8);
>> + ascii_put(e->cpi.sysplex_name, (char *)cpim->data.sysplex_name,
>> 8);
>
> Would it be possible to use sizeof() instead of hard-coding "8" here?
Hello Thomas,
Yes, it is. I will do so. Thank you very much for the review.
I will also move the property use_cpi to ccw_machine_10_0_class_options,
as version 10.0 is already released.
>
> Thanks,
> Thomas
--
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:42 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
2025-04-30 10:34 ` Thomas Huth
2025-05-05 7:42 ` Shalini Chellathurai Saroja [this message]
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=1c53abc29ddb96fee017fba5088e8619@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.