mbox series

[0/3] s390x: Simplify SCLPDevice usage

Message ID 20240502131533.377719-1-clg@redhat.com
Headers show
Series s390x: Simplify SCLPDevice usage | expand

Message

Cédric Le Goater May 2, 2024, 1:15 p.m. UTC
Hello,

Here is a little series reworking the SCLPDevice initialization in the
machine to simplify its use.

Applies on top of :

  https://lore.kernel.org/qemu-devel/20240430190843.453903-1-thuth@redhat.com/
  
Thanks,

C. 

Cédric Le Goater (3):
  s390x: Introduce a SCLPDevice pointer under the machine
  s390x/event-facility: Simplify sclp_get_event_facility_bus()
  s390x/sclp: Simplify get_sclp_device()

 include/hw/s390x/event-facility.h  |  2 +-
 include/hw/s390x/s390-virtio-ccw.h |  3 +++
 include/hw/s390x/sclp.h            |  2 --
 hw/s390x/event-facility.c          | 13 ++-----------
 hw/s390x/s390-virtio-ccw.c         | 18 ++++++++++++------
 hw/s390x/sclp.c                    | 15 +++------------
 6 files changed, 21 insertions(+), 32 deletions(-)