[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 02/17] s390-bios: decouple ci
From: |
Thomas Huth |
Subject: |
[qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 02/17] s390-bios: decouple cio setup from virtio |
Date: |
Fri, 12 Apr 2019 14:25:08 +0200 |
From: "Jason J. Herne" <address@hidden>
Move channel i/o setup code out to a separate function. This decouples cio
setup from the virtio code path and allows us to make use of it for booting
dasd devices.
Signed-off-by: Jason J. Herne <address@hidden>
Acked-by: Halil Pasic <address@hidden>
Reviewed-by: Collin Walling <address@hidden>
Reviewed-by: Farhan Ali <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Thomas Huth <address@hidden>
---
pc-bios/s390-ccw/main.c | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
index 544851d672..e82fe2ce23 100644
--- a/pc-bios/s390-ccw/main.c
+++ b/pc-bios/s390-ccw/main.c
@@ -99,6 +99,18 @@ static void menu_setup(void)
}
}
+/*
+ * Initialize the channel I/O subsystem so we can talk to our ipl/boot device.
+ */
+static void css_setup(void)
+{
+ /*
+ * Unconditionally enable mss support. In every sane configuration this
+ * will succeed; and even if it doesn't, stsch_err() can handle it.
+ */
+ enable_mss_facility();
+}
+
static void virtio_setup(void)
{
Schib schib;
@@ -109,13 +121,6 @@ static void virtio_setup(void)
VDev *vdev = virtio_get_device();
QemuIplParameters *early_qipl = (QemuIplParameters *)QIPL_ADDRESS;
- /*
- * We unconditionally enable mss support. In every sane configuration,
- * this will succeed; and even if it doesn't, stsch_err() can deal
- * with the consequences.
- */
- enable_mss_facility();
-
sclp_get_loadparm_ascii(loadparm_str);
memcpy(ldp + 10, loadparm_str, LOADPARM_LEN);
sclp_print(ldp);
@@ -168,6 +173,7 @@ static void virtio_setup(void)
int main(void)
{
sclp_setup();
+ css_setup();
virtio_setup();
zipl_load(); /* no return */
--
2.21.0
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 00/17] vfio-ccw dasd ipl support, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 02/17] s390-bios: decouple cio setup from virtio,
Thomas Huth <=
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 03/17] s390-bios: decouple common boot logic from virtio, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 01/17] s390 vfio-ccw: Add bootindex property and IPLB data, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 04/17] s390-bios: Clean up cio.h, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 05/17] s390-bios: Decouple channel i/o logic from virtio, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 06/17] s390-bios: Map low core memory, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 07/17] s390-bios: ptr2u32 and u32toptr, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 10/17] s390-bios: Extend find_dev() for non-virtio devices, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 08/17] s390-bios: Support for running format-0/1 channel programs, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 09/17] s390-bios: cio error handling, Thomas Huth, 2019/04/12
- [qemu-s390x] [PULL SUBSYSTEM s390-ccw-bios 11/17] s390-bios: Factor finding boot device out of virtio code path, Thomas Huth, 2019/04/12