]> git.proxmox.com Git - mirror_qemu.git/blobdiff - pc-bios/s390-ccw/bootmap.c
pc-bios/s390-ccw: Use the ccw bios to start the network boot
[mirror_qemu.git] / pc-bios / s390-ccw / bootmap.c
index 611102e3efc336efe378d9531634426771350817..b21c877b53570e0c2363d2e85770a166dbb9f212 100644 (file)
@@ -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()) {