diff options
| author | Jared Rossi <jrossi@linux.ibm.com> | 2024-10-19 21:29:48 -0400 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2024-10-23 06:53:44 +0200 |
| commit | bb185de42339025db9bbd5aa11f3f644c2a077f8 (patch) | |
| tree | b6e4acff235293cd134171499a83a7efdf7ec0d5 /hw/s390x/ccw-device.h | |
| parent | ba3658adc80a9370257a9c4e114829ec691311e3 (diff) | |
| download | focaccia-qemu-bb185de42339025db9bbd5aa11f3f644c2a077f8.tar.gz focaccia-qemu-bb185de42339025db9bbd5aa11f3f644c2a077f8.zip | |
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>
Diffstat (limited to 'hw/s390x/ccw-device.h')
| -rw-r--r-- | hw/s390x/ccw-device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/s390x/ccw-device.h b/hw/s390x/ccw-device.h index 5feeb0ee7a..1e1737c0f3 100644 --- a/hw/s390x/ccw-device.h +++ b/hw/s390x/ccw-device.h @@ -26,6 +26,8 @@ struct CcwDevice { CssDevId dev_id; /* The actual busid of the virtual subchannel. */ CssDevId subch_id; + /* If set, use this loadparm value when device is boot target */ + uint8_t loadparm[8]; }; typedef struct CcwDevice CcwDevice; |