[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [RFC 12/15] s390-bios: Use control unit type to determi
From: |
Thomas Huth |
Subject: |
Re: [qemu-s390x] [RFC 12/15] s390-bios: Use control unit type to determine boot method |
Date: |
Tue, 17 Jul 2018 20:25:31 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 05.07.2018 19:25, Jason J. Herne wrote:
> From: "Jason J. Herne" <address@hidden>
>
> 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.
>
> Signed-off-by: Jason J. Herne <address@hidden>
> Signed-off-by: Jason J. Herne <address@hidden>
> ---
> pc-bios/s390-ccw/main.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
> index 20c30c6..e4236c0 100644
> --- a/pc-bios/s390-ccw/main.c
> +++ b/pc-bios/s390-ccw/main.c
> @@ -204,9 +204,16 @@ int main(void)
> cio_setup();
> boot_setup();
> find_boot_device();
> + enable_subchannel(blk_schid);
>
> - virtio_setup();
> - zipl_load(); /* no return */
> + switch (cu_type(blk_schid)) {
> + case 0x3832: /* Virtio device */
Could we please get some #defines for the magic numbers?
Thomas
- Re: [qemu-s390x] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, (continued)
- Re: [qemu-s390x] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, Cornelia Huck, 2018/07/06
- Re: [qemu-s390x] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, Halil Pasic, 2018/07/06
- Re: [qemu-s390x] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, Cornelia Huck, 2018/07/06
- Re: [qemu-s390x] [Qemu-devel] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, Halil Pasic, 2018/07/06
- Re: [qemu-s390x] [Qemu-devel] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, Jason J. Herne, 2018/07/06
- Re: [qemu-s390x] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, Jason J. Herne, 2018/07/06
- Re: [qemu-s390x] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, Cornelia Huck, 2018/07/17
Re: [qemu-s390x] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, Christian Borntraeger, 2018/07/09
Re: [qemu-s390x] [RFC 10/15] s390-bios: Support for running format-0/1 channel programs, Christian Borntraeger, 2018/07/09
[qemu-s390x] [RFC 12/15] s390-bios: Use control unit type to determine boot method, Jason J. Herne, 2018/07/05
- Re: [qemu-s390x] [RFC 12/15] s390-bios: Use control unit type to determine boot method,
Thomas Huth <=
[qemu-s390x] [RFC 11/15] s390-bios: Refactor virtio to run channel programs via cio, Jason J. Herne, 2018/07/05
[qemu-s390x] [RFC 14/15] s390-bios: Support booting from real dasd device, Jason J. Herne, 2018/07/05
- Re: [qemu-s390x] [RFC 14/15] s390-bios: Support booting from real dasd device, David Hildenbrand, 2018/07/17
- Re: [qemu-s390x] [RFC 14/15] s390-bios: Support booting from real dasd device, Cornelia Huck, 2018/07/18
- Re: [qemu-s390x] [RFC 14/15] s390-bios: Support booting from real dasd device, David Hildenbrand, 2018/07/18
- Re: [qemu-s390x] [Qemu-devel] [RFC 14/15] s390-bios: Support booting from real dasd device, Halil Pasic, 2018/07/18
- Re: [qemu-s390x] [Qemu-devel] [RFC 14/15] s390-bios: Support booting from real dasd device, Cornelia Huck, 2018/07/18
- Re: [qemu-s390x] [Qemu-devel] [RFC 14/15] s390-bios: Support booting from real dasd device, Halil Pasic, 2018/07/18
Re: [qemu-s390x] [Qemu-devel] [RFC 14/15] s390-bios: Support booting from real dasd device, Halil Pasic, 2018/07/18
[qemu-s390x] [RFC 05/15] s390-bios: Factor finding boot device out of virtio code path, Jason J. Herne, 2018/07/05