[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH v3 13/16] s390-bios: Use control unit type to de
From: |
Cornelia Huck |
Subject: |
Re: [qemu-s390x] [PATCH v3 13/16] s390-bios: Use control unit type to determine boot method |
Date: |
Tue, 5 Mar 2019 13:27:43 +0100 |
On Fri, 1 Mar 2019 13:59:33 -0500
"Jason J. Herne" <address@hidden> wrote:
> The boot method is different depending on which device type we are
> booting from. Let's examine the control unit type to determine if we're
> a virtio device. We'll eventually add a case to check for a real dasd device
> here as well.
>
> Since we have to call enable_subchannel() in main now, might as well
> remove that call from virtio.c : run_ccw().
Any reason you cannot add the enable_subchannel() in the previous
patch? Then you never need to introduce it in run_ccw() :)
>
> Signed-off-by: Jason J. Herne <address@hidden>
> ---
> pc-bios/s390-ccw/main.c | 15 +++++++++++++--
> 1 file changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
> index 0670c14..ed79b7a 100644
> --- a/pc-bios/s390-ccw/main.c
> +++ b/pc-bios/s390-ccw/main.c
> @@ -198,13 +198,24 @@ static void virtio_setup(void)
>
> int main(void)
> {
> + uint16_t cutype;
> +
> sclp_setup();
> css_setup();
> boot_setup();
> find_boot_device();
> + enable_subchannel(blk_schid);
>
> - virtio_setup();
> - zipl_load(); /* no return */
> + cutype = cu_type(blk_schid);
> + switch (cutype) {
> + case CU_TYPE_VIRTIO:
> + virtio_setup();
> + zipl_load(); /* no return */
> + break;
> + default:
> + print_int("Attempting to boot from unexpected device type", cutype);
> + panic("");
> + }
>
> panic("Failed to load OS from hard disk\n");
> return 0; /* make compiler happy */
- Re: [qemu-s390x] [PATCH v3 07/16] s390-bios: Decouple channel i/o logic from virtio, (continued)
Re: [qemu-s390x] [PATCH v3 01/16] s390 vfio-ccw: Add bootindex property and IPLB data, Farhan Ali, 2019/03/04
[qemu-s390x] [PATCH v3 13/16] s390-bios: Use control unit type to determine boot method, Jason J. Herne, 2019/03/01
- Re: [qemu-s390x] [PATCH v3 13/16] s390-bios: Use control unit type to determine boot method,
Cornelia Huck <=
[qemu-s390x] [PATCH v3 16/16] s390-bios: dasd-ipl: Use control unit type to customize error data, Jason J. Herne, 2019/03/01
Re: [qemu-s390x] [PATCH v3 16/16] s390-bios: dasd-ipl: Use control unit type to customize error data, Cornelia Huck, 2019/03/04
[qemu-s390x] [PATCH v3 15/16] s390-bios: Support booting from real dasd device, Jason J. Herne, 2019/03/01