S390: fix error handling on kernel and initrd failures
commit118a89774346e6a406cd44f403cb043a417066c9
authorChristian Borntraeger <borntraeger@de.ibm.com>
Sun, 22 Apr 2012 23:52:20 +0000 (22 23:52 +0000)
committerAlexander Graf <agraf@suse.de>
Tue, 1 May 2012 19:04:06 +0000 (1 21:04 +0200)
treede167a438e9733b30cb65550ec174d5767e5682e
parentcc3c7384ac61728e9949d5e64c10664fe4510179
S390: fix error handling on kernel and initrd failures

If the user specifies a non-existing or non-accessable kernel or initrd
qemu does not fail, instead it ipls into the system, which then falls
into a program check loop due to the zeroed memory with no kernel.
Lets add some sanity checks.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/s390-virtio.c