diff options
author | Farhan Ali <alifm@linux.vnet.ibm.com> | 2016-11-01 17:34:00 -0400 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2017-02-28 12:04:48 +0100 |
commit | 99b72e0fbbadd1757d9adfdd3eeb596f6e690f33 (patch) | |
tree | f0549f2142d8c59a9299bc2023c8d83124a94924 /pc-bios/s390-ccw/bootmap.c | |
parent | f38b5b7fc4e27724afc72b91efa2bc82f84bb25e (diff) | |
download | qemu-99b72e0fbbadd1757d9adfdd3eeb596f6e690f33.zip qemu-99b72e0fbbadd1757d9adfdd3eeb596f6e690f33.tar.gz qemu-99b72e0fbbadd1757d9adfdd3eeb596f6e690f33.tar.bz2 |
pc-bios/s390-ccw: Use the ccw bios to start the network boot
We want to use the ccw bios to start final network boot. To do
this we use ccw bios to detect if the boot device is a virtio
network device and retrieve the start address of the
network boot image.
Signed-off-by: Farhan Ali <alifm@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'pc-bios/s390-ccw/bootmap.c')
-rw-r--r-- | pc-bios/s390-ccw/bootmap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pc-bios/s390-ccw/bootmap.c b/pc-bios/s390-ccw/bootmap.c index 611102e..b21c877 100644 --- a/pc-bios/s390-ccw/bootmap.c +++ b/pc-bios/s390-ccw/bootmap.c @@ -724,11 +724,17 @@ static void zipl_load_vscsi(void) void zipl_load(void) { - if (virtio_get_device()->is_cdrom) { + VDev *vdev = virtio_get_device(); + + if (vdev->is_cdrom) { ipl_iso_el_torito(); panic("\n! Cannot IPL this ISO image !\n"); } + if (virtio_get_device_type() == VIRTIO_ID_NET) { + jump_to_IPL_code(vdev->netboot_start_addr); + } + ipl_scsi(); switch (virtio_get_device_type()) { |