]> git.proxmox.com Git - mirror_qemu.git/commit - hw/s390x/ipl.c
s390: Move IPL code into a separate device
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 18 Dec 2012 07:50:57 +0000 (07:50 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 18 Jan 2013 18:07:47 +0000 (19:07 +0100)
commite674a49aae8b79bc4ea07f1bcd666bbf28b12a27
tree2db47acfbfc4c24cfb9b690a7142a17f08e9987f
parentccb084d3f0ec405afc6c878ace40f1ccf1e44027
s390: Move IPL code into a separate device

Lets move the code to setup IPL for external kernel
or via the zipl rom into a separate file. This allows to

- define a reboot handler, setting up the PSW appropriately
- enhance the boot code to IPL disks that contain a bootmap that
  was created with zipl under LPAR or z/VM (future patch)
- reuse that code for several machines (e.g. virtio-ccw and virtio-s390)
- allow different machines to provide different defaults

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
[agraf: symbolify initial psw, adjust header file location, fix for QOM]
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/s390-virtio.c
hw/s390x/Makefile.objs
hw/s390x/ipl.c [new file with mode: 0644]