[PATCH v6 0/3] Add SCLP event type CPI

Shalini Chellathurai Saroja posted 3 patches 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250616140107.990538-1-shalini@linux.ibm.com
Maintainers: Halil Pasic <pasic@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Eric Farman <farman@linux.ibm.com>, Richard Henderson <richard.henderson@linaro.org>, David Hildenbrand <david@redhat.com>, Ilya Leoshkevich <iii@linux.ibm.com>, Thomas Huth <thuth@redhat.com>
hw/s390x/event-facility.c          |   2 +
hw/s390x/meson.build               |   1 +
hw/s390x/s390-virtio-ccw.c         |  22 +++
hw/s390x/sclpcpi.c                 | 213 +++++++++++++++++++++++++++++
include/hw/s390x/event-facility.h  |  17 +++
include/hw/s390x/s390-virtio-ccw.h |   1 +
6 files changed, 256 insertions(+)
create mode 100644 hw/s390x/sclpcpi.c
[PATCH v6 0/3] Add SCLP event type CPI
Posted by Shalini Chellathurai Saroja 5 months ago
Implement the Service-Call Logical Processor (SCLP) event
type Control-Program Identification (CPI) in QEMU.

Changed since v5:
- Add identifiers as class properties instead of object properties
- Add description for all the class properties
- Remove S390ControlProgramId as it is not needed anymore
- Update description of system_level identifier
- Add Reviewed-by tags

Changed since v4:
- Remove the object control-program-id and add the CPI attributes
  directly to the sclpcpi object
- Instantiate sclpcpi device from v10.1 instead of v10.0
- Other minor changes

Changed since v3:
- Add QOM object sclpcpi from ccw_init()
- Add SCLPEventCPI state to store the CPI data in the sclpcpi device
- Other minor changes

Changed since v2:
- Add SPDX license tag in the new file hw/s390x/sclpcpi.c
- Store the control-program Identification data in the sclpcpi device
- Update the description of CPI attributes
- Use ldq_be_p() intead of be64_to_cpu()
- Return the CPI attribute system-level as an integer in QMP
- Add compat handling for backward migration
- Other minor changes

Shalini Chellathurai Saroja (3):
  hw/s390x: add SCLP event type CPI
  hw/s390x: add Control-Program Identification to QOM
  hw/s390x: support migration of CPI data

 hw/s390x/event-facility.c          |   2 +
 hw/s390x/meson.build               |   1 +
 hw/s390x/s390-virtio-ccw.c         |  22 +++
 hw/s390x/sclpcpi.c                 | 213 +++++++++++++++++++++++++++++
 include/hw/s390x/event-facility.h  |  17 +++
 include/hw/s390x/s390-virtio-ccw.h |   1 +
 6 files changed, 256 insertions(+)
 create mode 100644 hw/s390x/sclpcpi.c

-- 
2.49.0
Re: [PATCH v6 0/3] Add SCLP event type CPI
Posted by Thomas Huth 4 months, 3 weeks ago
On 16/06/2025 16.01, Shalini Chellathurai Saroja wrote:
> Implement the Service-Call Logical Processor (SCLP) event
> type Control-Program Identification (CPI) in QEMU.
> 
> Changed since v5:
> - Add identifiers as class properties instead of object properties
> - Add description for all the class properties
> - Remove S390ControlProgramId as it is not needed anymore
> - Update description of system_level identifier
> - Add Reviewed-by tags

  Hi Shalini!

Thanks, I've picked this up for my next pull request.

If you've got some spare time, could you maybe also look into writing a 
regression test for this, e.g. by extending one of the tests in 
tests/functional/test_s390x_ccw_virtio.py to see whether the guests provide 
the expected information via CPI there? (I hope the guests in that test are 
recent enough for this feature, otherwise we might want to update them)

  Thanks,
   Thomas
Re: [PATCH v6 0/3] Add SCLP event type CPI
Posted by Shalini Chellathurai Saroja 4 months, 3 weeks ago
On 2025-06-24 12:25, Thomas Huth wrote:
> On 16/06/2025 16.01, Shalini Chellathurai Saroja wrote:
>> Implement the Service-Call Logical Processor (SCLP) event
>> type Control-Program Identification (CPI) in QEMU.
>> 
>> Changed since v5:
>> - Add identifiers as class properties instead of object properties
>> - Add description for all the class properties
>> - Remove S390ControlProgramId as it is not needed anymore
>> - Update description of system_level identifier
>> - Add Reviewed-by tags
> 
>  Hi Shalini!
> 
> Thanks, I've picked this up for my next pull request.
> 
> If you've got some spare time, could you maybe also look into writing
> a regression test for this, e.g. by extending one of the tests in
> tests/functional/test_s390x_ccw_virtio.py to see whether the guests
> provide the expected information via CPI there? (I hope the guests in
> that test are recent enough for this feature, otherwise we might want
> to update them)
> 

Hello Thomas,

Thank you very much. Yes, I will do so.

>  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