History | View | Annotate | Download (6.1 kB)
s390x/ipl: Fix crash of ELF images with arbitrary entry points
When loading S390 kernels, the current code expects an ELF file with thestart address 0x10000. Other ELF files cause a segmentation fault. To avoidthese crashes, we should get the start address from the ELF file instead...
qdev: Replace no_user by cannot_instantiate_with_device_add_yet
In an ideal world, machines can be built by wiring devices togetherwith configuration, not code. Unfortunately, that's not the world welive in right now. We still have quite a few devices that need to be...
sysbus: Set cannot_instantiate_with_device_add_yet
device_add plugs devices into suitable bus. For "real" buses, thatactually connects the device. For sysbus, the connections need to bemade separately, and device_add can't do that. The device would be...
s390x: fix flat file load on 32 bit systems
pc-bios/s390-zipl.rom is a flat image so it's expected thatloading it as elf will fail.It should fall back on loading a flat file, but doesn'ton 32 bit systems, instead it fails printing: qemu: hardware error: could not load bootloader 's390-zipl.rom'...
s390/ipl: Fix boot order
The latest ipl code adaptions collided with some of the virtiorefactoring rework. This resulted in always booting the firstdisk. Let's fix booting from a given ID.The new code also checks for command lines without bootindex to...
S390: Merging s390_ipl_cpu and s390_ipl_reset
There is no use in have this splitted in two functions.
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>Signed-off-by: Alexander Graf <agraf@suse.de>
S390: Add virtio-blk boot
If no kernel IPL entry is specified, boot the bios and pass if availabledevice information for the first boot device (as given by the boot index).
The provided information will be used in the next commit from the BIOS.
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>...
S390: BIOS check for file
Add a check if the BIOS blob exists before trying to load.
S390: IPL: Use different firmware for different machines
We have a virtio-s390 and a virtio-ccw machine in QEMU. Both use vastlydifferent ways to do I/O. Having the same firmware blob for both doesn'treally make any sense.
Instead, let's parametrize the firmware file name, so that we can have...
S390: Make IPL reset address dynamic
We can have different load addresses for different blobs we boot with.Make the reset IP dynamic, so that we can handle things more flexibly.
Signed-off-by: Alexander Graf <agraf@suse.de>
S390: IPL: Support ELF firmware
Our firmware blob is always a raw file that we load at a fixed address today.Support loading an ELF blob instead that we can map high up in memory.
This way we don't have to be so conscious about size constraints.
target-s390x: Pass S390CPU to s390_{add, del}_running_cpu()
This prepares for moving the halted field to CPUState.Most call sites can already supply S390CPU, for some env becomes unused.
Signed-off-by: Andreas Färber <afaerber@suse.de>Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>...
s390: Make typeinfo const
All TypeInfo definitions should be const.
s390: Move IPL code into a separate device
Lets move the code to setup IPL for external kernelor 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...