Alex, while Einar is reworking the block size/geometry patches, here is the current state of the external loader. While the real firmware loader only supports fcp, this patch also allows to ipl dasd disks (the differences in terms of on-disk format are pretty small). This has the advantage of being able to zipl on LPAR and ipl in KVM and vice versa for DASD disks.
This patch also contains code to IPL a new dasd bootmap (which is then architectured) that will be created by a future zipl version. This zipl version will then also allow to zipl a dasd/scsi disk under KVM and create the same bootmap as under LPAR. I was able to IPL CDL,LDL and FCP disks. Can you have a look and give some review feedback? PS: booting from dasd requires the correct geometry and blocksize Christian Borntraeger (1): s390: IPL device for s390 Makefile.target | 2 +- hw/s390-loader.c | 463 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/s390-loader.h | 81 ++++++++++ hw/s390-virtio.c | 36 +---- vl.c | 7 + 5 files changed, 554 insertions(+), 35 deletions(-) create mode 100644 hw/s390-loader.c create mode 100644 hw/s390-loader.h -- 1.7.9.6