s390x: Add individual loadparm assignment to CCW device
authorJared Rossi <jrossi@linux.ibm.com>
Sun, 20 Oct 2024 01:29:48 +0000 (21:29 -0400)
committerThomas Huth <thuth@redhat.com>
Wed, 23 Oct 2024 04:53:44 +0000 (06:53 +0200)
commitbb185de42339025db9bbd5aa11f3f644c2a077f8
treeb6e4acff235293cd134171499a83a7efdf7ec0d5
parentba3658adc80a9370257a9c4e114829ec691311e3
s390x: Add individual loadparm assignment to CCW device

Add a loadparm property to the VirtioCcwDevice object so that different
loadparms can be defined on a per-device basis for CCW boot devices.

The machine/global loadparm is still supported. If both a global and per-device
loadparm are defined, the per-device value will override the global value for
that device, but any other devices that do not specify a per-device loadparm
will still use the global loadparm.

It is invalid to assign a loadparm to a non-boot device.

Signed-off-by: Jared Rossi <jrossi@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20241020012953.1380075-15-jrossi@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/ccw-device.c
hw/s390x/ccw-device.h
hw/s390x/ipl.c
hw/s390x/ipl.h
hw/s390x/s390-virtio-ccw.c
hw/s390x/sclp.c
include/hw/s390x/ipl/qipl.h
pc-bios/s390-ccw/main.c